summaryrefslogtreecommitdiff
path: root/examples/obj_loading
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-21 12:15:01 +1000
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-21 12:15:01 +1000
commit6585326fe177a0dc710ef6624a301a36db992e96 (patch)
tree89d05e39fec71a3cdc7a1ddf16b441b15d06d0ee /examples/obj_loading
parente6273e4dc87a036547447492396c9939e89ecf23 (diff)
minor cleanup
Diffstat (limited to 'examples/obj_loading')
-rw-r--r--examples/obj_loading/ex_obj_loading.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/obj_loading/ex_obj_loading.c b/examples/obj_loading/ex_obj_loading.c
index e225cb2..aaed2a0 100644
--- a/examples/obj_loading/ex_obj_loading.c
+++ b/examples/obj_loading/ex_obj_loading.c
@@ -1,3 +1,4 @@
+#include <assert.h>
#include <glfw3.h>
#include <string.h>
@@ -25,6 +26,7 @@ int main() {
model_handle backpack_handle =
model_load_obj(core, "assets/models/obj/backpack/backpack.obj", true);
model* backpack = &core->models->data[backpack_handle.raw];
+ assert(backpack->meshes->data->is_skinned == false);
// 2. upload vertex data to gpu
model_upload_meshes(&core->renderer, backpack);
// 3. create a camera