From 6632745a25a75bc544675c30ff405fb837c3ccfb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 2 Jun 2006 06:34:13 +0000 Subject: [PATCH] Simple fix, args from the UI were out of allignment --- release/scripts/mesh_poly_reduce.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/release/scripts/mesh_poly_reduce.py b/release/scripts/mesh_poly_reduce.py index 7efa916f248..d93e62f868d 100644 --- a/release/scripts/mesh_poly_reduce.py +++ b/release/scripts/mesh_poly_reduce.py @@ -25,6 +25,7 @@ def main(): # Defaults PREF_REDUX= Draw.Create(0.5) PREF_BOUNDRY_WEIGHT= Draw.Create(5.0) + PREF_REM_DOUBLES= Draw.Create(1) PREF_FACE_AREA_WEIGHT= Draw.Create(1.0) PREF_FACE_TRIANGULATE= Draw.Create(1) PREF_DO_UV= Draw.Create(1) @@ -39,6 +40,7 @@ def main(): ('UV Coords', PREF_DO_UV, 'Interpolate UV Coords.'),\ ('Vert Colors', PREF_DO_VCOL, 'Interpolate Vertex Colors'),\ ('Vert Weights', PREF_DO_WEIGHTS, 'Interpolate Vertex Weights'),\ + ('Remove Doubles', PREF_REM_DOUBLES, 'Remove doubles before reducing to avoid boundry tearing.'),\ ] if not Draw.PupBlock("X Mirror mesh tool", pup_block): @@ -46,6 +48,7 @@ def main(): PREF_REDUX= PREF_REDUX.val PREF_BOUNDRY_WEIGHT= PREF_BOUNDRY_WEIGHT.val + PREF_REM_DOUBLES= PREF_REM_DOUBLES.val PREF_FACE_AREA_WEIGHT= PREF_FACE_AREA_WEIGHT.val PREF_FACE_TRIANGULATE= PREF_FACE_TRIANGULATE.val PREF_DO_UV= PREF_DO_UV.val @@ -58,7 +61,7 @@ def main(): if is_editmode: Window.EditMode(0) Window.WaitCursor(1) - BPyMesh.redux(act_ob, PREF_REDUX, PREF_BOUNDRY_WEIGHT, PREF_FACE_AREA_WEIGHT, PREF_FACE_TRIANGULATE, PREF_DO_UV, PREF_DO_VCOL, PREF_DO_WEIGHTS) + BPyMesh.redux(act_ob, PREF_REDUX, PREF_BOUNDRY_WEIGHT, PREF_REM_DOUBLES, PREF_FACE_AREA_WEIGHT, PREF_FACE_TRIANGULATE, PREF_DO_UV, PREF_DO_VCOL, PREF_DO_WEIGHTS) if is_editmode: Window.EditMode(1) Window.WaitCursor(0)