From 19a539df76903106de2a96b0b5503d0b0734eed3 Mon Sep 17 00:00:00 2001 From: Philipp Oeser <info@graphics-engineer.com> Date: Mon, 18 Jun 2012 14:31:38 +0000 Subject: [PATCH] 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. --- io_scene_obj/import_obj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index 17d559a40..39d929eef 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) -- GitLab