Browse Source

Fixed broken material names generation in OBJ converter.

alteredq 15 năm trước cách đây
mục cha
commit
f02f057677
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)