summaryrefslogtreecommitdiff
path: root/src/resources/obj.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-14 22:29:15 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-14 22:29:15 +1100
commit2b83174a87f5a1e4991cc9153309ad0f73450b44 (patch)
treecefdd730a82e3e917e2f8813c110b980eb2dfefb /src/resources/obj.c
parent0ae30006abf7ae8940257be1276e55fdec0774c4 (diff)
fix cube texture path now that we can load relative path
Diffstat (limited to 'src/resources/obj.c')
-rw-r--r--src/resources/obj.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/resources/obj.c b/src/resources/obj.c
index 710d5f0..56f885f 100644
--- a/src/resources/obj.c
+++ b/src/resources/obj.c
@@ -45,11 +45,8 @@ model_handle model_load_obj(core *core, const char *path, bool invert_textures_y
if (!relative_path.has_value) {
WARN("Couldnt get a relative path for the path to use for loading materials & textures later");
}
- printf("Relative path: %s\n", relative_path.path.buf);
const char *file_string = string_from_file(path);
- // TODO: store the relative path without the name.obj at the end
-
model model = { 0 };
model.name = str8_cstr_view(path);
model.meshes = mesh_darray_new(1);