[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [995] trunk/py/scripts/addons/ io_mesh_stl/blender_utils.py: Fix for bug #237413 and potential futures
Bouchard Guillaume
guillaume.bouchard at insa-lyon.fr
Wed Sep 8 14:47:42 CEST 2010
Revision: 995
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=995
Author: guillaum
Date: 2010-09-08 14:47:42 +0200 (Wed, 08 Sep 2010)
Log Message:
-----------
Fix for bug #237413 and potential futures
Python way, *Betterto Say Sorry than to Ask Permission*
Modified Paths:
--------------
trunk/py/scripts/addons/io_mesh_stl/blender_utils.py
Modified: trunk/py/scripts/addons/io_mesh_stl/blender_utils.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_stl/blender_utils.py 2010-09-08 12:46:40 UTC (rev 994)
+++ trunk/py/scripts/addons/io_mesh_stl/blender_utils.py 2010-09-08 12:47:42 UTC (rev 995)
@@ -31,13 +31,13 @@
Split the quad into two triangles
'''
- if ob.type not in ('MESH', 'CURVE', 'SURFACE', 'META'):
+ # get the modifiers
+ try:
+ mesh = ob.create_mesh(bpy.context.scene,
+ apply_modifier, "PREVIEW")
+ except SystemError:
return ()
- # get the modifiers
- mesh = ob.create_mesh(bpy.context.scene,
- apply_modifier, "PREVIEW")
-
def iter_face_index():
'''
From a list of faces, return the face triangulated if needed.
More information about the Bf-extensions-cvs
mailing list