From f5536e5e49c34dfc0a7b8990257cd393339e23c6 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Mon, 8 Jan 2018 16:16:41 +1100
Subject: [PATCH] Fix T53702: OBJ MTL fails w/ negative numbers

---
 io_scene_obj/import_obj.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index c120e540a..c42756067 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[:] = []
-- 
GitLab