diff options
Diffstat (limited to 'crates/rapier3d-stl')
| -rw-r--r-- | crates/rapier3d-stl/Cargo.toml | 2 | ||||
| -rw-r--r-- | crates/rapier3d-stl/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/rapier3d-stl/Cargo.toml b/crates/rapier3d-stl/Cargo.toml index fd6fc86..38b3508 100644 --- a/crates/rapier3d-stl/Cargo.toml +++ b/crates/rapier3d-stl/Cargo.toml @@ -16,4 +16,4 @@ edition = "2021" thiserror = "1.0.61" stl_io = "0.7" -rapier3d = { version = "0.21", path = "../rapier3d" } +rapier3d = { version = "0.22", path = "../rapier3d" } diff --git a/crates/rapier3d-stl/src/lib.rs b/crates/rapier3d-stl/src/lib.rs index 0273bc0..7b22e74 100644 --- a/crates/rapier3d-stl/src/lib.rs +++ b/crates/rapier3d-stl/src/lib.rs @@ -90,7 +90,7 @@ pub fn load_from_raw_mesh( let mut vertices: Vec<_> = raw_mesh .vertices .iter() - .map(|xyz| Point::new(xyz[0] as Real, xyz[1] as Real, xyz[2] as Real)) + .map(|xyz| Point::new(xyz[0], xyz[1], xyz[2])) .collect(); vertices .iter_mut() |
