Explorar o código

Fixed broken material names generation in OBJ converter.

alteredq %!s(int64=15) %!d(string=hai) anos
pai
achega
f02f057677
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)