[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [929] trunk/py/scripts/addons/ io_mesh_stl/blender_utils.py: Fix #23394: STL export script did not check if objects could be
Brecht Van Lommel
brecht at blender.org
Fri Aug 20 12:13:04 CEST 2010
Revision: 929
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=929
Author: blendix
Date: 2010-08-20 12:13:04 +0200 (Fri, 20 Aug 2010)
Log Message:
-----------
Fix #23394: STL export script did not check if objects could be
converted to meshes, making export fail with empties and armatures.
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-08-19 17:40:24 UTC (rev 928)
+++ trunk/py/scripts/addons/io_mesh_stl/blender_utils.py 2010-08-20 10:13:04 UTC (rev 929)
@@ -31,6 +31,9 @@
Split the quad into two triangles
'''
+ if ob.type not in ('MESH', 'CURVE', 'SURFACE', 'META'):
+ return ()
+
# get the modifiers
mesh = ob.create_mesh(bpy.context.scene,
True, "PREVIEW") if apply_modifier else ob.data
More information about the Bf-extensions-cvs
mailing list