[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60050] trunk/blender/source/blender/ editors/uvedit/uvedit_parametrizer.c: Fix #36705: UV pack island crashing after recent change.

Brecht Van Lommel brechtvanlommel at pandora.be
Wed Sep 11 20:57:57 CEST 2013


Revision: 60050
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60050
Author:   blendix
Date:     2013-09-11 18:57:56 +0000 (Wed, 11 Sep 2013)
Log Message:
-----------
Fix #36705: UV pack island crashing after recent change.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/uvedit/uvedit_parametrizer.c

Modified: trunk/blender/source/blender/editors/uvedit/uvedit_parametrizer.c
===================================================================
--- trunk/blender/source/blender/editors/uvedit/uvedit_parametrizer.c	2013-09-11 17:34:32 UTC (rev 60049)
+++ trunk/blender/source/blender/editors/uvedit/uvedit_parametrizer.c	2013-09-11 18:57:56 UTC (rev 60050)
@@ -4483,7 +4483,6 @@
 
 	for (i = 0; i < phandle->ncharts; i++) {
 		float (*points)[2];
-		int tot;
 		float angle;
 
 		chart = phandle->charts[i];
@@ -4496,7 +4495,7 @@
 
 		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);
 




More information about the Bf-blender-cvs mailing list