Skip to content

Deserialize custom workspaces using a placeholder - #450

Open
Jondolf wants to merge 1 commit into
dimforge:masterfrom
Jondolf:serialize-custom-workspaces
Open

Jondolf wants to merge 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
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.

1 participant