Browse Source

Fixed broken material names generation in OBJ converter.

alteredq 14 years ago
parent
commit
f02f057677
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/exporters/convert_obj_threejs_slim.py

+ 1 - 1
utils/exporters/convert_obj_threejs_slim.py

@@ -638,7 +638,7 @@ def generate_color(i):
         return "0x%06x" % int(0xffffff * random.random())
         
 def value2string(v):
-    if type(v)==str and v[0] != "0":
+    if type(v)==str and v[0:2] != "0x":
         return '"%s"' % v
     return str(v)