[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [561] trunk/py/scripts/addons/ mesh_relax.py: small cleanup (thanks for the initial fix, Thomas!)

Fabian Fricke frigi.f at googlemail.com
Mon Apr 12 20:20:38 CEST 2010


Revision: 561
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=561
Author:   frigi
Date:     2010-04-12 20:20:38 +0200 (Mon, 12 Apr 2010)

Log Message:
-----------
small cleanup (thanks for the initial fix, Thomas!)

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 12:07:53 UTC (rev 560)
+++ trunk/py/scripts/addons/mesh_relax.py	2010-04-12 18:20:38 UTC (rev 561)
@@ -52,7 +52,6 @@
 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
@@ -77,7 +76,7 @@
     bpy.ops.object.mode_set(mode='OBJECT')
 
     # apply and remove the modifier
-    me = obj.create_mesh(sce, True, 'PREVIEW')
+    me = obj.create_mesh(context.scene, True, 'PREVIEW')
     obj.data = me
     obj.modifiers.remove(sw)
 
@@ -125,4 +124,4 @@
     bpy.types.VIEW3D_MT_edit_mesh_vertices.remove(menu_func)
 
 if __name__ == "__main__":
-    register()
\ No newline at end of file
+    register()




More information about the Bf-extensions-cvs mailing list