diff options
Diffstat (limited to 'mesh_relax.py')
-rw-r--r-- | mesh_relax.py | 3 |
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) |