diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2012-06-18 18:31:38 +0400 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2012-06-18 18:31:38 +0400 |
commit | 19a539df76903106de2a96b0b5503d0b0734eed3 (patch) | |
tree | abae68791f361a915292e38ce255c9512bd03984 /io_scene_obj | |
parent | d1289656f040011b8619a73f4dff2f16d4dabdf9 (diff) |
This should fix [#31835] "OBJ Importer corrupts a model (crash in edit mode)" reported by paul geraskin.
The importer did the mesh validation before calculating edges (should be the other way around).
Reviewed by Campbell.
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 17d559a4..39d929ee 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -672,8 +672,8 @@ def create_mesh(new_objects, # me_edges[ed].flag |= SHARP # del SHARP - me.validate() me.update(calc_edges=use_edges) + me.validate() ob = bpy.data.objects.new("Mesh", me) new_objects.append(ob) |