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

Yay, applying modifiers works now!

parent 5ea06f18
Branches
Tags
No related merge requests found
...@@ -80,10 +80,7 @@ def relax_mesh(context): ...@@ -80,10 +80,7 @@ def relax_mesh(context):
bpy.ops.object.mode_set(mode='OBJECT') bpy.ops.object.mode_set(mode='OBJECT')
# apply the modifier # apply the modifier
# (this is temporary, applying needs to be done properly at some point) bpy.ops.object.modifier_apply(modifier='relax_target')
C_py = bpy.types.Context.copy(context)
C_py["modifier"] = sw
bpy.ops.object.modifier_apply(C_py)
# delete the target object # delete the target object
obj.selected = False obj.selected = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment