diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-01-08 08:16:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-01-08 08:16:41 +0300 |
commit | f5536e5e49c34dfc0a7b8990257cd393339e23c6 (patch) | |
tree | e95d8a328c05997d5076566e7bd662a39544044f /io_scene_obj | |
parent | 07f4730af48bdf493de5b200eb30899dc78181a0 (diff) |
Fix T53702: OBJ MTL fails w/ negative numbers
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/import_obj.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index c120e540..c4275606 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -109,7 +109,7 @@ def create_materials(filepath, relpath, curr_token = [] for token in img_data[:-1]: - if token.startswith(b'-'): + if token.startswith(b'-') and token[1:].isalpha(): if curr_token: map_options[curr_token[0]] = curr_token[1:] curr_token[:] = [] |