ref faster no copy

This commit is contained in:
Quaternions 2023-11-03 19:43:40 -07:00
parent ebca761dbc
commit 60eadd3156

View File

@ -139,7 +139,7 @@ impl From<&crate::model::IndexedModel> for PhysicsMesh{
let face_id=FaceId(i); let face_id=FaceId(i);
FaceRefs{edges:face_ref_guy.0.into_iter().map(|edge_id|{ FaceRefs{edges:face_ref_guy.0.into_iter().map(|edge_id|{
//get the edge face that's not this face //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{ if edge_faces[0]==face_id{
(edge_id,edge_faces[1]) (edge_id,edge_faces[1])
}else if edge_faces[1]==face_id{ }else if edge_faces[1]==face_id{