Browse Source

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 15 years ago
parent
commit
a0e3f4068f
1 changed files with 2 additions and 2 deletions
  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):
 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):
 def bbox(vertices):
     """Compute bounding box of vertex array.
     """Compute bounding box of vertex array.