From 049a5a86edcf78b070b73b141b657825145ae9a1 Mon Sep 17 00:00:00 2001 From: CoDEmanX Date: Tue, 4 Feb 2014 03:05:05 +0100 Subject: Clean-up: Updated bl_info['tracker_url'] to developer.blender.org, some minor other edits --- mesh_relax.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'mesh_relax.py') diff --git a/mesh_relax.py b/mesh_relax.py index 579cce25..87ba4bd5 100644 --- a/mesh_relax.py +++ b/mesh_relax.py @@ -24,15 +24,14 @@ bl_info = { "name": "Relax", "author": "Fabian Fricke", - "version": (1,1), + "version": (1, 1), "blender": (2, 57, 0), "location": "View3D > Specials > Relax ", "description": "Relax the selected verts while retaining the shape", "warning": "", - "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"\ + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/" "Scripts/Modeling/Relax", - "tracker_url": "https://projects.blender.org/tracker/index.php?"\ - "func=detail&aid=21421", + "tracker_url": "https://developer.blender.org/T21421", "category": "Mesh"} """ @@ -70,10 +69,10 @@ def relax_mesh(context): target.modifiers.remove(target.modifiers[0]) context.scene.objects.active = obj - + sw = obj.modifiers.new(type='SHRINKWRAP', name='relax_target') sw.target = target - + # run smooth operator to relax the mesh bpy.ops.object.mode_set(mode='EDIT') bpy.ops.mesh.vertices_smooth() @@ -81,12 +80,12 @@ def relax_mesh(context): # apply the modifier bpy.ops.object.modifier_apply(modifier='relax_target') - + # delete the target object obj.select = False target.select = True bpy.ops.object.delete() - + # go back to initial state obj.select = True bpy.ops.object.mode_set(mode='EDIT') -- cgit v1.2.3