From 25fc6a03a3c78c755e8b00c481c7d71da6e145c4 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Mon, 11 Mar 2024 15:40:25 +1100 Subject: minor cleanup --- src/resources/obj.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/resources/obj.c') 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; -- cgit v1.2.3-70-g09d2