Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Fricke <frigi.f@googlemail.com>2010-04-12 22:20:38 +0400
committerFabian Fricke <frigi.f@googlemail.com>2010-04-12 22:20:38 +0400
commit827f4f670dfef95c509be599270d6f749fa336b0 (patch)
treec137133a3d910163b1895f00c2b047772d6e9e76 /mesh_relax.py
parent2a14b0f374ab9e52662183fcc82928ef7e47fe85 (diff)
small cleanup (thanks for the initial fix, Thomas!)
Diffstat (limited to 'mesh_relax.py')
-rw-r--r--mesh_relax.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesh_relax.py b/mesh_relax.py
index 77da5a23..211ecfca 100644
--- a/mesh_relax.py
+++ b/mesh_relax.py
@@ -52,7 +52,6 @@ from bpy.props import IntProperty
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 @@ def relax_mesh(self, context):
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 @@ def unregister():
bpy.types.VIEW3D_MT_edit_mesh_vertices.remove(menu_func)
if __name__ == "__main__":
- register() \ No newline at end of file
+ register()