From b2c9782ab2f4abec8f8548e667a8f2ad6e36bd4b Mon Sep 17 00:00:00 2001 From: Omniscient Date: Tue, 18 Jun 2024 11:03:52 +1000 Subject: wip --- src/resources/gltf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/gltf.c') diff --git a/src/resources/gltf.c b/src/resources/gltf.c index f136595..c51e30d 100644 --- a/src/resources/gltf.c +++ b/src/resources/gltf.c @@ -377,9 +377,9 @@ bool model_load_gltf_str(const char *file_string, const char *filepath, str8 rel geometry->vertices = geo_vertices; geometry->indices = geo_indices; geometry->has_indices = has_indices; - + mesh m = mesh_create(geometry, true); - m.material_index = (u32_opt){.has_value = mat_idx == 9999, .value = mat_idx }; + m.material_index = (u32_opt){ .has_value = mat_idx == 9999, .value = mat_idx }; mesh_darray_push(out_model->meshes, m); } -- cgit v1.2.3-70-g09d2