diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-09-11 22:57:56 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-09-11 22:57:56 +0400 |
commit | e19006b8ce236b2dc300469d5ac9c95b2c7c5b5f (patch) | |
tree | ae1cba6a277fb12d4854f4fd538d8755745e43b8 /source/blender/editors/uvedit | |
parent | ba68fea78b5fbbd45deeed0edaed46732a79cafe (diff) |
Fix #36705: UV pack island crashing after recent change.
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_parametrizer.c | 3 |
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); |