arrays end at #-1

This commit is contained in:
Quaternions 2024-03-13 10:42:21 -07:00
parent 5faac6b2b3
commit 28a47e2daf

View File

@ -771,7 +771,7 @@ impl PartialMap1{
mesh_clone.graphics_groups.push(model::IndexedGraphicsGroup{
render,
//guess that highest lod is highest quality
groups:vec![model::PolygonGroupId::new(mesh_clone.polygon_groups.len() as u32)]
groups:vec![model::PolygonGroupId::new(mesh_clone.polygon_groups.len() as u32-1)]
});
self.primitive_meshes.push(mesh_clone);
mesh_id