[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [559] trunk/py/scripts/addons/ mesh_relax.py: * Fix for recent API changes.

Thomas Dinges dingto at gmx.de
Mon Apr 12 13:11:43 CEST 2010


Revision: 559
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=559
Author:   dingto
Date:     2010-04-12 13:11:43 +0200 (Mon, 12 Apr 2010)

Log Message:
-----------
* Fix for recent API changes.

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-12 09:20:06 UTC (rev 558)
+++ trunk/py/scripts/addons/mesh_relax.py	2010-04-12 11:11:43 UTC (rev 559)
@@ -52,6 +52,7 @@
 def relax_mesh(self, context):
     
     # get active object and remember some of its mesh info
+    sce = context.scene
     obj = context.active_object
     me_old = obj.data
     me_name = me_old.name
@@ -76,7 +77,7 @@
     bpy.ops.object.mode_set(mode='OBJECT')
 
     # apply and remove the modifier
-    me = obj.create_mesh(True, 'PREVIEW')
+    me = obj.create_mesh(sce, True, 'PREVIEW')
     obj.data = me
     obj.modifiers.remove(sw)
 




More information about the Bf-extensions-cvs mailing list