[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [994] trunk/py/scripts/addons/ io_mesh_stl/blender_utils.py: better use of blender api

Bouchard Guillaume guillaume.bouchard at insa-lyon.fr
Wed Sep 8 14:46:40 CEST 2010


Revision: 994
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=994
Author:   guillaum
Date:     2010-09-08 14:46:40 +0200 (Wed, 08 Sep 2010)

Log Message:
-----------
better use of blender api

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 11:44:32 UTC (rev 993)
+++ trunk/py/scripts/addons/io_mesh_stl/blender_utils.py	2010-09-08 12:46:40 UTC (rev 994)
@@ -36,7 +36,7 @@
 
     # get the modifiers
     mesh = ob.create_mesh(bpy.context.scene,
-                          True, "PREVIEW") if apply_modifier else ob.data
+                            apply_modifier, "PREVIEW")
 
     def iter_face_index():
         '''




More information about the Bf-extensions-cvs mailing list