Fix 3D compilation.

This commit is contained in:
Crozet Sébastien
2020-11-03 14:50:29 +01:00
parent c6af248e66
commit 477411c656
2 changed files with 2 additions and 2 deletions

View File

@@ -138,7 +138,7 @@ impl MaybeSerializableData for PfmPfmContactManifoldGeneratorWorkspace {
)) ))
} }
fn clone(&self) -> Box<MaybeSerializableData> { fn clone_dyn(&self) -> Box<MaybeSerializableData> {
Box::new(self.clone()) Box::new(self.clone())
} }
} }

View File

@@ -5,7 +5,7 @@ use crate::utils::WBasis;
use na::Point2; use na::Point2;
use ncollide::shape::Segment; use ncollide::shape::Segment;
#[derive(Debug)] #[derive(Debug, Clone)]
pub struct PolyhedronFace { pub struct PolyhedronFace {
pub vertices: [Point<f32>; 4], pub vertices: [Point<f32>; 4],
pub vids: [u8; 4], // Feature ID of the vertices. pub vids: [u8; 4], // Feature ID of the vertices.