summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-11 15:40:25 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-11 15:40:25 +1100
commit25fc6a03a3c78c755e8b00c481c7d71da6e145c4 (patch)
tree1b0d3222a8b37e12a8b128861bac6ad380228362 /src
parent1c6ec0b7b8e437a003137428636149132d998357 (diff)
minor cleanup
Diffstat (limited to 'src')
-rw-r--r--src/resources/obj.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources/obj.c b/src/resources/obj.c
index 031377d..658967e 100644
--- a/src/resources/obj.c
+++ b/src/resources/obj.c
@@ -51,7 +51,7 @@ model_handle model_load_obj(core *core, const char *path, bool invert_textures_y
// TODO: store the relative path without the name.obj at the end
model model = { 0 };
- model.name = str8lit(path);
+ model.name = str8_cstr_view(path);
model.meshes = mesh_darray_new(1);
model.materials = material_darray_new(1);
@@ -182,7 +182,6 @@ bool model_load_obj_str(const char *file_string, str8 relative_path, model *out_
sscanf(pch + offset, "%s", filename);
char mtllib_path[1024];
snprintf(mtllib_path, sizeof(mtllib_path), "%s/%s", relative_path.buf, filename);
- // sscanf(pch + offset, "%s", path + 7);
if (!load_material_lib(mtllib_path, out_model->materials)) {
ERROR("couldnt load material lib");
return false;