Fix compilation of the 3D testbed.

This commit is contained in:
Crozet Sébastien
2021-01-26 16:58:58 +01:00
parent 23a86c294e
commit a3324f8513

View File

@@ -104,8 +104,9 @@ impl Node {
Node::Convex(ref n) => Some(n.scene_node()), Node::Convex(ref n) => Some(n.scene_node()),
Node::Cylinder(ref n) => Some(n.scene_node()), Node::Cylinder(ref n) => Some(n.scene_node()),
Node::Cone(ref n) => Some(n.scene_node()), Node::Cone(ref n) => Some(n.scene_node()),
Node::Polyline(_) => None,
#[cfg(feature = "dim2")] #[cfg(feature = "dim2")]
_ => None, Node::HeightField(_) => None,
} }
} }
@@ -122,8 +123,9 @@ impl Node {
Node::Convex(ref mut n) => Some(n.scene_node_mut()), Node::Convex(ref mut n) => Some(n.scene_node_mut()),
Node::Cylinder(ref mut n) => Some(n.scene_node_mut()), Node::Cylinder(ref mut n) => Some(n.scene_node_mut()),
Node::Cone(ref mut n) => Some(n.scene_node_mut()), Node::Cone(ref mut n) => Some(n.scene_node_mut()),
Node::Polyline(_) => None,
#[cfg(feature = "dim2")] #[cfg(feature = "dim2")]
_ => None, Node::HeightField(_) => None,
} }
} }