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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-09-11 22:57:56 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-09-11 22:57:56 +0400
commite19006b8ce236b2dc300469d5ac9c95b2c7c5b5f (patch)
treeae1cba6a277fb12d4854f4fd538d8755745e43b8 /source/blender/editors/uvedit/uvedit_parametrizer.c
parentba68fea78b5fbbd45deeed0edaed46732a79cafe (diff)
Fix #36705: UV pack island crashing after recent change.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_parametrizer.c')
-rw-r--r--source/blender/editors/uvedit/uvedit_parametrizer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c
index f0e97ffe3b1..b8a54c56c63 100644
--- a/source/blender/editors/uvedit/uvedit_parametrizer.c
+++ b/source/blender/editors/uvedit/uvedit_parametrizer.c
@@ -4483,7 +4483,6 @@ static void param_pack_rotate(ParamHandle *handle)
for (i = 0; i < phandle->ncharts; i++) {
float (*points)[2];
- int tot;
float angle;
chart = phandle->charts[i];
@@ -4496,7 +4495,7 @@ static void param_pack_rotate(ParamHandle *handle)
p_chart_uv_to_array(chart, points);
- angle = BLI_convexhull_aabb_fit_points_2d((const float (*)[2])points, tot);
+ angle = BLI_convexhull_aabb_fit_points_2d((const float (*)[2])points, chart->nverts);
MEM_freeN(points);