From 60eadd3156cb2285240f8af54993cae5e017744a Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 3 Nov 2023 19:43:40 -0700 Subject: [PATCH] ref faster no copy --- src/model_physics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model_physics.rs b/src/model_physics.rs index 29e386e..dc50b4d 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -139,7 +139,7 @@ impl From<&crate::model::IndexedModel> for PhysicsMesh{ let face_id=FaceId(i); FaceRefs{edges:face_ref_guy.0.into_iter().map(|edge_id|{ //get the edge face that's not this face - let edge_faces=edge_pool.edge_guys[edge_id.0].1.0; + let edge_faces=&edge_pool.edge_guys[edge_id.0].1.0; if edge_faces[0]==face_id{ (edge_id,edge_faces[1]) }else if edge_faces[1]==face_id{