[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31108] branches/soc-2010-nicolasbishop/ source/blender/editors/sculpt_paint/ptex.c: == Ptex ==

Nicholas Bishop nicholasbishop at gmail.com
Fri Aug 6 17:58:15 CEST 2010


Revision: 31108
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31108
Author:   nicholasbishop
Date:     2010-08-06 17:58:15 +0200 (Fri, 06 Aug 2010)

Log Message:
-----------
== Ptex ==

Fixed unitialized variable reported by mariusz

Modified Paths:
--------------
    branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/ptex.c

Modified: branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/ptex.c
===================================================================
--- branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/ptex.c	2010-08-06 15:36:38 UTC (rev 31107)
+++ branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/ptex.c	2010-08-06 15:58:15 UTC (rev 31108)
@@ -85,7 +85,7 @@
 	limit_pos = MEM_callocN(sizeof(float)*3*me->totvert, "limit_pos");
 	face_area = MEM_callocN(sizeof(float)*me->totface, "face_area");
 	subsurf_calculate_limit_positions(me, limit_pos);
-	for(i = 0; i < me->totface; ++i) {
+	for(i = 0, totarea = 0; i < me->totface; ++i) {
 		MFace *f = &me->mface[i];
 		if(f->v4) {
 			face_area[i] = area_quad_v3(limit_pos[f->v1], limit_pos[f->v2],





More information about the Bf-blender-cvs mailing list