diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-11 15:09:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-11 15:09:15 +0300 |
commit | a2f135e7d725d3a9232dfef1ee19ecae2efb9e31 (patch) | |
tree | 9523e898ac2162a9a167740cec314cec8a1ab813 /io_mesh_raw | |
parent | 914ac4194f3070cc12338e533b6e29610faeb3aa (diff) |
use mesh.validate() to ensure all meshes of imported data is ok and wont crash blender.
Diffstat (limited to 'io_mesh_raw')
-rw-r--r-- | io_mesh_raw/import_raw.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_mesh_raw/import_raw.py b/io_mesh_raw/import_raw.py index b8e96209..4b5b7304 100644 --- a/io_mesh_raw/import_raw.py +++ b/io_mesh_raw/import_raw.py @@ -107,6 +107,8 @@ def addMeshObj(mesh, objName): o.select = False mesh.update() + mesh.validate() + nobj = bpy.data.objects.new(objName, mesh) scn.objects.link(nobj) nobj.select = True |