This commit is contained in:
Matthew 2025-11-22 19:02:35 +11:00
parent b3e2779c23
commit 292bb10214

View File

@ -714,8 +714,8 @@ AddMeshVertices(cgltf_accessor* accessor, ModelData* model, u64 mesh_index, u64*
if(model.meshes[mesh_index].vtx == null) 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].vtx = model.vtx_buf[*vtx_count .. *vtx_count+accessor.count];
model.meshes[mesh_index].start = *vtx_count; model.meshes[mesh_index].offset = cast(u32)*vtx_count;
model.meshes[mesh_index].length = accessor.count; model.meshes[mesh_index].length = cast(u32)accessor.count;
*vtx_count += accessor.count; *vtx_count += accessor.count;
} }
} }