Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-11 15:09:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-11 15:09:15 +0300
commita2f135e7d725d3a9232dfef1ee19ecae2efb9e31 (patch)
tree9523e898ac2162a9a167740cec314cec8a1ab813 /io_scene_x3d
parent914ac4194f3070cc12338e533b6e29610faeb3aa (diff)
use mesh.validate() to ensure all meshes of imported data is ok and wont crash blender.
Diffstat (limited to 'io_scene_x3d')
-rw-r--r--io_scene_x3d/import_x3d.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index b4b9fe09..e9393234 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -1699,7 +1699,7 @@ def importMesh_IndexedFaceSet(geom, bpyima, ancestry):
#for f in faces:
# bpymesh.faces.extend(faces, smooth=True)
- # bpymesh.calcNormals()
+ bpymesh.validate()
bpymesh.update()
if len(bpymesh.faces) != len(faces):
@@ -1916,7 +1916,7 @@ def importMesh_PointSet(geom, ancestry):
bpymesh.vertices.add(len(points))
bpymesh.vertices.foreach_set("co", [a for v in points for a in v])
- # bpymesh.calcNormals() # will just be dummy normals
+ # No need to validate
bpymesh.update()
return bpymesh