Remove double quotes in the mtl and texture paths #297
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If the mtl and/or texture paths are enclosed in double-quotes, they will fail to be read.
For example, if within the
obj
file, the mtl path is defined as follows:mtllib "OBJ - Berlin Bridge.mtl"
The
mtl
file will not be loaded because when we try to compare the extension of the file to confirm that it ends with.mtl
, that fails because the last token is.mtl"
The same thing happens to texture files.
This pull request strips the mtl and texture file of its double quotes if they exists. If they don't , nothing happens.
There is at least one OBJ export tool (metashape from agisoft) that adds double quotes to filemanes that contains spaces in them.
This pull request sould fix this isse.