Fix compilation when serde is enabled.

This commit is contained in:
Crozet Sébastien
2020-12-17 18:56:34 +01:00
parent 5386f08c9b
commit a0c2a2c309

View File

@@ -37,7 +37,7 @@ impl ColliderGraphIndices {
pub struct NarrowPhase {
#[cfg_attr(
feature = "serde-serialize",
serde(default = "default_query_dispatcher")
serde(skip, default = "default_query_dispatcher")
)]
query_dispatcher: Arc<dyn PersistentQueryDispatcher<ContactManifoldData, ContactData>>,
contact_graph: InteractionGraph<ContactPair>,