Explorar o código

Merge branch 'blenderimporttessface' of https://github.com/migvel/three.js into dev

Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
13cdae428f

+ 2 - 0
utils/exporters/blender/2.66/scripts/addons/io_mesh_threejs/import_threejs.py

@@ -130,6 +130,7 @@ def create_mesh_object(name, vertices, materials, face_data, flipYZ, recalculate
     if face_data["hasVertexNormals"]:
 
         print("setting vertex normals")
+        me.update(calc_tessface = True)
 
         for fi in range(len(faces)):
 
@@ -268,6 +269,7 @@ def create_mesh_object(name, vertices, materials, face_data, flipYZ, recalculate
             me.materials.append(m)
 
         print("setting materials (faces)")
+        me.update(calc_tessface = True)
 
         for fi in range(len(faces)):