[Bf-blender-cvs] [1b7b90b] soc-2016-uv_tools: Small tweak for margin computation

Phil Gosch noreply at git.blender.org
Tue Aug 9 00:14:03 CEST 2016


Commit: 1b7b90bd8cb298627410382cf5ae97738d37f3be
Author: Phil Gosch
Date:   Tue Aug 9 00:13:43 2016 +0200
Branches: soc-2016-uv_tools
https://developer.blender.org/rB1b7b90bd8cb298627410382cf5ae97738d37f3be

Small tweak for margin computation

===================================================================

M	source/blender/editors/uvedit/uvedit_unwrap_ops.c

===================================================================

diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
index 39bb0d1..b72047e 100644
--- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
+++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
@@ -876,7 +876,7 @@ static bool irregular_pack_islands_init(bContext *C, wmOperator *op)
 	pi->iter_max = RNA_int_get(op->ptr, "iterations");
 	pi->iter_global = 0;
 	pi->iter_local = 0;
-	pi->margin = RNA_float_get(op->ptr, "margin");
+	pi->margin = RNA_float_get(op->ptr, "margin") / 2.0f; /* Only apply half the margin per chart */
 	pi->handle = construct_param_handle(scene, obedit, em->bm, hparams);
 	pi->lasttime = PIL_check_seconds_timer();




More information about the Bf-blender-cvs mailing list