Describe the bug
The OBJ loader fails to load textures that are stored in relative paths to the obj file. If such a path occurs, it simply adds the model's path to the path.
For example:
- Model path: "assets:\some_folder\model.obj"
- Texture described in mtl file: "..\texture_folder\texture.png"
- Resulting texture path: "assets:\some_folder..\texture_folder\texture.png"
Include a MRE
Load any model where the mtl uses a relative texture path with ../
Expected behavior
The relative filepath should be resolved appropriately by checking for .. before combining the paths
Desktop (please complete the following information):
Describe the bug
The OBJ loader fails to load textures that are stored in relative paths to the obj file. If such a path occurs, it simply adds the model's path to the path.
For example:
Include a MRE
Load any model where the mtl uses a relative texture path with ../
Expected behavior
The relative filepath should be resolved appropriately by checking for .. before combining the paths
Desktop (please complete the following information):