From b7665ffda3588a50e2d99d507754332a92d67eb6 Mon Sep 17 00:00:00 2001
From: Fabian Fricke <frigi.f@googlemail.com>
Date: Thu, 22 Apr 2010 14:15:43 +0000
Subject: [PATCH] Yay, applying modifiers works now!

---
 mesh_relax.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/mesh_relax.py b/mesh_relax.py
index 19bcc8048..1b6526be3 100644
--- a/mesh_relax.py
+++ b/mesh_relax.py
@@ -80,10 +80,7 @@ def relax_mesh(context):
     bpy.ops.object.mode_set(mode='OBJECT')
 
     # apply the modifier
-    # (this is temporary, applying needs to be done properly at some point)
-    C_py = bpy.types.Context.copy(context)
-    C_py["modifier"] = sw
-    bpy.ops.object.modifier_apply(C_py)
+    bpy.ops.object.modifier_apply(modifier='relax_target')
     
     # delete the target object
     obj.selected = False
-- 
GitLab