Explorar el Código

Changed exported JS class name in OBJ converter to use the same convention as Blender exporter (use exact case of JS filename, no capitalization).

alteredq hace 15 años
padre
commit
a0e3f4068f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      utils/exporters/convert_obj_threejs.py

+ 2 - 2
utils/exporters/convert_obj_threejs.py

@@ -314,10 +314,10 @@ def file_exists(filename):
 
     
 def get_name(fname):
-    """Create model name based of filename ("path/fname.js" -> "Fname").
+    """Create model name based of filename ("path/fname.js" -> "fname").
     """
     
-    return os.path.basename(fname).split(".")[0].capitalize()
+    return os.path.basename(fname).split(".")[0]
   
 def bbox(vertices):
     """Compute bounding box of vertex array.