[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [629] trunk/py/scripts/addons/ mesh_relax.py: Yay, applying modifiers works now!

Fabian Fricke frigi.f at googlemail.com
Thu Apr 22 16:15:43 CEST 2010


Revision: 629
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=629
Author:   frigi
Date:     2010-04-22 16:15:43 +0200 (Thu, 22 Apr 2010)

Log Message:
-----------
Yay, applying modifiers works now!

Modified Paths:
--------------
    trunk/py/scripts/addons/mesh_relax.py

Modified: trunk/py/scripts/addons/mesh_relax.py
===================================================================
--- trunk/py/scripts/addons/mesh_relax.py	2010-04-22 13:04:31 UTC (rev 628)
+++ trunk/py/scripts/addons/mesh_relax.py	2010-04-22 14:15:43 UTC (rev 629)
@@ -80,10 +80,7 @@
     bpy.ops.object.mode_set(mode='OBJECT')
 
     # apply the modifier
-    # (this is temporary, applying needs to be done properly at some point)
-    C_py = bpy.types.Context.copy(context)
-    C_py["modifier"] = sw
-    bpy.ops.object.modifier_apply(C_py)
+    bpy.ops.object.modifier_apply(modifier='relax_target')
     
     # delete the target object
     obj.selected = False




More information about the Bf-extensions-cvs mailing list