fix types in Mesh struct, adjust name
This commit is contained in:
parent
443329b2dc
commit
b3e2779c23
6
assets.d
6
assets.d
@ -100,8 +100,8 @@ struct Mesh
|
||||
{
|
||||
Vertex[] vtx;
|
||||
u32[] idx;
|
||||
u64 start;
|
||||
u64 length;
|
||||
u32 offset;
|
||||
u32 length;
|
||||
u32 mat_id;
|
||||
}
|
||||
|
||||
@ -375,7 +375,7 @@ LoadGLTF(Arena* arena, string file_name)
|
||||
model.vtx_buf = Alloc!(Vertex)(vtx_count);
|
||||
model.meshes = Alloc!(Mesh)(primitive_count);
|
||||
model.mats = Alloc!(Material)(data.materials_count+1);
|
||||
model.tex = Alloc!(ImageData)(data.textures_count+1);
|
||||
model.tex = Alloc!(ImageData)(data.textures_count+1);
|
||||
|
||||
model.mats[0] = DEFAULT_MATERIAL;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user