From 2a14b0f374ab9e52662183fcc82928ef7e47fe85 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Mon, 12 Apr 2010 11:11:43 +0000 Subject: * Fix for recent API changes. --- mesh_relax.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3