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:
authorThomas Dinges <blender@dingto.org>2010-04-12 15:11:43 +0400
committerThomas Dinges <blender@dingto.org>2010-04-12 15:11:43 +0400
commit2a14b0f374ab9e52662183fcc82928ef7e47fe85 (patch)
tree72efc00de52ad65c5b029455a5ed3f5a142c33fe /mesh_relax.py
parent726de6e9653f4973dfa70d28faf6888f385c29ff (diff)
* Fix for recent API changes.
Diffstat (limited to 'mesh_relax.py')
-rw-r--r--mesh_relax.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesh_relax.py b/mesh_relax.py
index a47f2940..77da5a23 100644
--- a/mesh_relax.py
+++ b/mesh_relax.py
@@ -52,6 +52,7 @@ 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
@@ -76,7 +77,7 @@ def relax_mesh(self, context):
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)