From a2f135e7d725d3a9232dfef1ee19ecae2efb9e31 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 11 Feb 2011 12:09:15 +0000 Subject: use mesh.validate() to ensure all meshes of imported data is ok and wont crash blender. --- io_mesh_stl/blender_utils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'io_mesh_stl') diff --git a/io_mesh_stl/blender_utils.py b/io_mesh_stl/blender_utils.py index 3d0ef076..f763929a 100644 --- a/io_mesh_stl/blender_utils.py +++ b/io_mesh_stl/blender_utils.py @@ -34,6 +34,7 @@ def create_and_link_mesh(name, faces, points): bpy.context.scene.objects.link(ob) # update mesh to allow proper display + mesh.validate() mesh.update() -- cgit v1.2.3