Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-05-25 06:11:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-05-25 06:11:18 +0400
commit1af059b642c94b44e7d09c1546e583659775ceb8 (patch)
tree9970cd10f98bff1a85c2984cab1c490c99f1ad93
parent3ceed4cfb207e06c978d49f2992f8a19970cab22 (diff)
[#18808] Unstable results of Pack Margin in UV editor
was scaling the margin by the area twice
-rw-r--r--source/blender/src/parametrizer.c8
1 files 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;
}
}