[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40133] branches/bmesh/blender/source/ blender/bmesh/intern/bmesh_polygon.c: Fix for array init in BM_Point_In_Face

Andrew Wiggin ender79bl at gmail.com
Sun Sep 11 18:41:04 CEST 2011


Revision: 40133
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40133
Author:   ender79
Date:     2011-09-11 16:41:03 +0000 (Sun, 11 Sep 2011)
Log Message:
-----------
Fix for array init in BM_Point_In_Face

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/bmesh/intern/bmesh_polygon.c

Modified: branches/bmesh/blender/source/blender/bmesh/intern/bmesh_polygon.c
===================================================================
--- branches/bmesh/blender/source/blender/bmesh/intern/bmesh_polygon.c	2011-09-11 15:36:11 UTC (rev 40132)
+++ branches/bmesh/blender/source/blender/bmesh/intern/bmesh_polygon.c	2011-09-11 16:41:03 UTC (rev 40133)
@@ -595,7 +595,7 @@
 int BM_Point_In_Face(BMesh *bm, BMFace *f, float co[3])
 {
 	int xn, yn, zn, ax, ay;
-	float co2[3], cent[3] = {0.0f, 0.0f}, out[3] = {FLT_MAX*0.5f, FLT_MAX*0.5f, 0};
+	float co2[3], cent[3] = {0.0f, 0.0f, 0.0f}, out[3] = {FLT_MAX*0.5f, FLT_MAX*0.5f, 0};
 	BMLoop *l;
 	int crosses = 0;
 	float eps = 1.0f+(float)FLT_EPSILON*150.0f;




More information about the Bf-blender-cvs mailing list