From 1af059b642c94b44e7d09c1546e583659775ceb8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 25 May 2009 02:11:18 +0000 Subject: [#18808] Unstable results of Pack Margin in UV editor was scaling the margin by the area twice --- source/blender/src/parametrizer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/blender/src/parametrizer.c b/source/blender/src/parametrizer.c index feb774b604a..46218ec921b 100644 --- a/source/blender/src/parametrizer.c +++ b/source/blender/src/parametrizer.c @@ -4188,11 +4188,11 @@ void param_pack(ParamHandle *handle, float margin) } box = boxarray+(i-unpacked); - trans[0] = margin * area; - trans[1] = margin * area; + trans[0] = margin; + trans[1] = margin; p_chart_uv_translate(chart, trans); - box->w += (margin * area) *2; - box->h += (margin * area) *2; + box->w += margin*2; + box->h += margin*2; } } -- cgit v1.2.3