Fix build when serialization is not enabled.

This commit is contained in:
Crozet Sébastien
2020-10-26 16:24:58 +01:00
parent 3fd4a62a2e
commit ba6655be8e
2 changed files with 2 additions and 1 deletions

View File

@@ -162,7 +162,7 @@ fn do_generate_contacts(
collider2,
shape1: &sub_shape1,
shape2: collider2.shape(),
position1: position1,
position1,
position2: collider2.position(),
manifold,
workspace: sub_detector.workspace.as_deref_mut(),

View File

@@ -365,6 +365,7 @@ impl Shape for Cone {
#[cfg(feature = "dim3")]
impl Shape for Rounded<Cylinder> {
#[cfg(feature = "serde-serialize")]
fn as_serialize(&self) -> Option<&dyn Serialize> {
Some(self as &dyn Serialize)
}