arrays end at #-1
This commit is contained in:
parent
5faac6b2b3
commit
28a47e2daf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user