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:
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);