From 292bb10214869da59a8fcaeda9bfce813ac28ad7 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 22 Nov 2025 19:02:35 +1100 Subject: [PATCH] fix bugs --- assets.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets.d b/assets.d index 35450ff..86d6115 100644 --- a/assets.d +++ b/assets.d @@ -714,8 +714,8 @@ AddMeshVertices(cgltf_accessor* accessor, ModelData* model, u64 mesh_index, u64* if(model.meshes[mesh_index].vtx == null) { model.meshes[mesh_index].vtx = model.vtx_buf[*vtx_count .. *vtx_count+accessor.count]; - model.meshes[mesh_index].start = *vtx_count; - model.meshes[mesh_index].length = accessor.count; + model.meshes[mesh_index].offset = cast(u32)*vtx_count; + model.meshes[mesh_index].length = cast(u32)accessor.count; *vtx_count += accessor.count; } }