Skip to content
Snippets Groups Projects
Commit 827f4f67 authored by Fabian Fricke's avatar Fabian Fricke
Browse files

small cleanup (thanks for the initial fix, Thomas!)

parent 2a14b0f3
No related branches found
No related tags found
No related merge requests found
......@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment