summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authoromnisci3nce <17525998+omnisci3nce@users.noreply.github.com>2024-04-04 20:54:45 +1100
committeromnisci3nce <17525998+omnisci3nce@users.noreply.github.com>2024-04-04 20:54:45 +1100
commitaf97c4330a27a92d2362e30b70990e3aa5c9954a (patch)
treea21359f3f4e8cc4efe9288288a59e55c6ced5d7d /src/resources
parentbb889d2edc1cc72b939edf47a2e03b7569c1a722 (diff)
add AnimatedCube
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/gltf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/gltf.c b/src/resources/gltf.c
index b269fcd..261c96f 100644
--- a/src/resources/gltf.c
+++ b/src/resources/gltf.c
@@ -211,7 +211,8 @@ bool model_load_gltf_str(const char *file_string, const char *filepath, str8 rel
if (primitive.material != NULL) {
for (int i = 0; i < material_darray_len(out_model->materials); i++) {
- if (strcmp(primitive.material->name, out_model->materials->data[i].name)) {
+ printf("%s vs %s \n", primitive.material->name, out_model->materials->data[i].name);
+ if (strcmp(primitive.material->name, out_model->materials->data[i].name) == 0) {
TRACE("Found material");
mesh.material_index = i;
break;