[Bf-extensions-cvs] [0973ea34] master: mesh_tools/mesh_relax: pass in smooth factor
Campbell Barton
noreply at git.blender.org
Thu Jan 2 06:58:36 CET 2020
Commit: 0973ea34684ed6efdb3e745e5ae5fe148c4f3ffe
Author: Campbell Barton
Date: Thu Jan 2 16:57:50 2020 +1100
Branches: master
https://developer.blender.org/rBA0973ea34684ed6efdb3e745e5ae5fe148c4f3ffe
mesh_tools/mesh_relax: pass in smooth factor
The default is now zero.
===================================================================
M mesh_tools/mesh_relax.py
===================================================================
diff --git a/mesh_tools/mesh_relax.py b/mesh_tools/mesh_relax.py
index a1dabf3d..8416ea9a 100644
--- a/mesh_tools/mesh_relax.py
+++ b/mesh_tools/mesh_relax.py
@@ -75,7 +75,7 @@ def relax_mesh(context):
# run smooth operator to relax the mesh
bpy.ops.object.mode_set(mode='EDIT')
- bpy.ops.mesh.vertices_smooth()
+ bpy.ops.mesh.vertices_smooth(factor=0.5)
bpy.ops.object.mode_set(mode='OBJECT')
# apply the modifier
More information about the Bf-extensions-cvs
mailing list