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_scene_obj | |
parent | 914ac4194f3070cc12338e533b6e29610faeb3aa (diff) |
use mesh.validate() to ensure all meshes of imported data is ok and wont crash blender.
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/import_obj.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index 37c8df3d..1056fde0 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -842,8 +842,8 @@ def create_mesh(new_objects, has_ngons, CREATE_FGONS, CREATE_EDGES, verts_loc, v # me_edges[ed].flag |= SHARP # del SHARP + me.validate() me.update(calc_edges=CREATE_EDGES) -# me.calcNormals() ob = bpy.data.objects.new("Mesh", me) new_objects.append(ob) |