summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/obj.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/resources/obj.c b/src/resources/obj.c
index 994e12a..fca6b0e 100644
--- a/src/resources/obj.c
+++ b/src/resources/obj.c
@@ -37,9 +37,8 @@ bool load_material_lib(const char *path, material_darray *materials);
bool model_load_obj_str(const char *file_string, model *out_model, bool invert_textures_y);
model_handle model_load_obj(core *core, const char *path, bool invert_textures_y) {
- printf("Path %s\n", path);
+ TRACE("Loading model at Path %s\n", path);
const char *file_string = string_from_file(path);
- /* printf("Loaded file %s\n", file_string); */
model model;
bool success = model_load_obj_str(file_string, &model, invert_textures_y);
@@ -196,9 +195,7 @@ bool model_load_obj_str(const char *file_string, model *out_model, bool invert_t
printf("num meshes: %ld\n", mesh_darray_len(meshes));
}
out_model->meshes = meshes;
- /* for (int i = 0; i < mesh_darray_len(meshes); i++) { */
- /* mesh_darray_push(&out_model->meshes, ((mesh *)meshes->data)[i]); */
- /* } */
+
// TODO: bounding box calculation for each mesh
// TODO: bounding box calculation for model