Skip to content
Snippets Groups Projects
Commit 2a14b0f3 authored by Thomas Dinges's avatar Thomas Dinges
Browse files

* Fix for recent API changes.

parent 726de6e9
Branches
No related tags found
No related merge requests found
...@@ -52,6 +52,7 @@ from bpy.props import IntProperty ...@@ -52,6 +52,7 @@ from bpy.props import IntProperty
def relax_mesh(self, context): def relax_mesh(self, context):
# get active object and remember some of its mesh info # get active object and remember some of its mesh info
sce = context.scene
obj = context.active_object obj = context.active_object
me_old = obj.data me_old = obj.data
me_name = me_old.name me_name = me_old.name
...@@ -76,7 +77,7 @@ def relax_mesh(self, context): ...@@ -76,7 +77,7 @@ def relax_mesh(self, context):
bpy.ops.object.mode_set(mode='OBJECT') bpy.ops.object.mode_set(mode='OBJECT')
# apply and remove the modifier # apply and remove the modifier
me = obj.create_mesh(True, 'PREVIEW') me = obj.create_mesh(sce, True, 'PREVIEW')
obj.data = me obj.data = me
obj.modifiers.remove(sw) obj.modifiers.remove(sw)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment