浏览代码

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 年之前
父节点
当前提交
a0e3f4068f
共有 1 个文件被更改,包括 2 次插入2 次删除
  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.