aboutsummaryrefslogtreecommitdiff
path: root/crates/rapier3d-stl/src
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2024-07-20 17:14:43 +0200
committerGitHub <noreply@github.com>2024-07-20 17:14:43 +0200
commitcf74150763dd575bc0399087e845e9be62aba56f (patch)
tree9670b7b3d817aea9255a69efa26967389880b409 /crates/rapier3d-stl/src
parent55a7d8b7ad37227f5c97131c4852a94efe748194 (diff)
downloadrapier-0.22.0.tar.gz
rapier-0.22.0.tar.bz2
rapier-0.22.0.zip
Release v0.22.0 (#695)v0.22.0
Diffstat (limited to 'crates/rapier3d-stl/src')
-rw-r--r--crates/rapier3d-stl/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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()