[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15030] trunk/blender/source/blender/src/ meshtools.c:

Brecht Van Lommel brechtvanlommel at pandora.be
Wed May 28 19:55:07 CEST 2008


Revision: 15030
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15030
Author:   blendix
Date:     2008-05-28 19:55:06 +0200 (Wed, 28 May 2008)

Log Message:
-----------

Fix for bug #13230: particle mirror could fail on some faces.

Modified Paths:
--------------
    trunk/blender/source/blender/src/meshtools.c

Modified: trunk/blender/source/blender/src/meshtools.c
===================================================================
--- trunk/blender/source/blender/src/meshtools.c	2008-05-28 17:42:03 UTC (rev 15029)
+++ trunk/blender/source/blender/src/meshtools.c	2008-05-28 17:55:06 UTC (rev 15030)
@@ -957,6 +957,12 @@
 		mirrormf.v3= mirrorverts[mf->v1];
 		mirrormf.v4= (mf->v4)? mirrorverts[mf->v4]: 0;
 
+		/* make sure v4 is not 0 if a quad */
+		if(mf->v4 && mirrormf.v4==0) {
+			SWAP(int, mirrormf.v1, mirrormf.v3);
+			SWAP(int, mirrormf.v2, mirrormf.v4);
+		}
+
 		hashmf= BLI_ghash_lookup(fhash, &mirrormf);
 		if(hashmf) {
 			mirrorfaces[a*2]= hashmf - mface;





More information about the Bf-blender-cvs mailing list