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; } }