fix bugs
This commit is contained in:
parent
b3e2779c23
commit
292bb10214
4
assets.d
4
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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user