Skip to content

Deserialize custom workspaces using a placeholder - #450

Merged
sebcrozet merged 1 commit into
dimforge:masterfrom
Jondolf:serialize-custom-workspaces
Oct 6, 2026
Merged

sebcrozet merged 1 commit into
dimforge:masterfrom
Jondolf:serialize-custom-workspaces

Conversation

@Jondolf

@Jondolf Jondolf commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Addresses dimforge/rapier#999 (review).

Currently, deserializing a custom workspace returns an error, as the type is unknown to Parry and the data was lost during serialization. When deserializing the physics world in Rapier, this failure propagates up and fails the whole snapshot.

This PR makes deserializing an unknown (custom) workspace return an UnknownContactManifoldsWorkspace instead of an error. This dummy value can be replaced with the actual workspace type at the next execution of the relevant algorithm.

@Jondolf Jondolf changed the title Serialize custom workspaces using a placeholder Deserialize custom workspaces using a placeholder Sep 22, 2026
@sebcrozet
sebcrozet merged commit b3c3584 into dimforge:master Oct 6, 2026
9 checks passed
@sebcrozet

Copy link
Copy Markdown
Member

Thanks!

@Jondolf
Jondolf deleted the serialize-custom-workspaces branch October 6, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants