From 28a47e2daf0bc7379cbdf34ea5e96ab1b9a98cb6 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 13 Mar 2024 10:42:21 -0700 Subject: [PATCH] arrays end at #-1 --- src/rbx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rbx.rs b/src/rbx.rs index 7852f97..0be4a06 100644 --- a/src/rbx.rs +++ b/src/rbx.rs @@ -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