diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-06-18 11:03:52 +1000 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-06-18 11:03:52 +1000 |
commit | b2c9782ab2f4abec8f8548e667a8f2ad6e36bd4b (patch) | |
tree | 34973f37f585439357a5e455225d272e9398a742 /src/resources/gltf.c | |
parent | 4b5695ce26a8f821dfac987e8e11a6ba5eeff610 (diff) |
wip
Diffstat (limited to 'src/resources/gltf.c')
-rw-r--r-- | src/resources/gltf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |