Skip to content
Snippets Groups Projects
Commit 19a539df authored by Philipp Oeser's avatar Philipp Oeser
Browse files

This should fix [#31835] "OBJ Importer corrupts a model (crash in edit mode)"...

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.
parent d1289656
No related branches found
No related tags found
No related merge requests found
...@@ -672,8 +672,8 @@ def create_mesh(new_objects, ...@@ -672,8 +672,8 @@ def create_mesh(new_objects,
# me_edges[ed].flag |= SHARP # me_edges[ed].flag |= SHARP
# del SHARP # del SHARP
me.validate()
me.update(calc_edges=use_edges) me.update(calc_edges=use_edges)
me.validate()
ob = bpy.data.objects.new("Mesh", me) ob = bpy.data.objects.new("Mesh", me)
new_objects.append(ob) new_objects.append(ob)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment