forked from StrafesNET/strafe-client
fix fart
This commit is contained in:
parent
84b364313b
commit
682fa44741
@ -487,7 +487,7 @@ impl TransformedMesh<'_>{
|
|||||||
SubmeshVertId::new(
|
SubmeshVertId::new(
|
||||||
self.view.topology.verts.iter()
|
self.view.topology.verts.iter()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.min_by_key(|(_,vert_id)|
|
.max_by_key(|(_,&vert_id)|
|
||||||
dir.dot(self.transform.vertex.transform_point3(self.view.data.verts[vert_id.get() as usize].0))
|
dir.dot(self.transform.vertex.transform_point3(self.view.data.verts[vert_id.get() as usize].0))
|
||||||
)
|
)
|
||||||
//assume there is more than zero vertices.
|
//assume there is more than zero vertices.
|
||||||
|
Loading…
Reference in New Issue
Block a user