Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Fricke <frigi.f@googlemail.com>2010-04-22 18:15:43 +0400
committerFabian Fricke <frigi.f@googlemail.com>2010-04-22 18:15:43 +0400
commitb7665ffda3588a50e2d99d507754332a92d67eb6 (patch)
tree52f2028f527d54be6f85ef8d8a27cd79d27c0559 /mesh_relax.py
parent5ea06f180c071216cf9b46aaf1c6139971dc82ef (diff)
Yay, applying modifiers works now!
Diffstat (limited to 'mesh_relax.py')
-rw-r--r--mesh_relax.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/mesh_relax.py b/mesh_relax.py
index 19bcc804..1b6526be 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