Skip to content
Snippets Groups Projects
Commit f5536e5e authored by Campbell Barton's avatar Campbell Barton
Browse files

Fix T53702: OBJ MTL fails w/ negative numbers

parent 07f4730a
Branches
Tags
No related merge requests found
...@@ -109,7 +109,7 @@ def create_materials(filepath, relpath, ...@@ -109,7 +109,7 @@ def create_materials(filepath, relpath,
curr_token = [] curr_token = []
for token in img_data[:-1]: for token in img_data[:-1]:
if token.startswith(b'-'): if token.startswith(b'-') and token[1:].isalpha():
if curr_token: if curr_token:
map_options[curr_token[0]] = curr_token[1:] map_options[curr_token[0]] = curr_token[1:]
curr_token[:] = [] curr_token[:] = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment