[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35105] trunk/blender/source/blender/ blenkernel/intern/particle_system.c: Oops, a quick addition to the previous fix to actually make it work :)

Janne Karhu jhkarh at gmail.com
Wed Feb 23 11:49:54 CET 2011


Revision: 35105
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35105
Author:   jhk
Date:     2011-02-23 10:49:54 +0000 (Wed, 23 Feb 2011)
Log Message:
-----------
Oops, a quick addition to the previous fix to actually make it work :)

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/particle_system.c

Modified: trunk/blender/source/blender/blenkernel/intern/particle_system.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/particle_system.c	2011-02-23 10:42:27 UTC (rev 35104)
+++ trunk/blender/source/blender/blenkernel/intern/particle_system.c	2011-02-23 10:49:54 UTC (rev 35105)
@@ -2287,7 +2287,7 @@
 	/* pressure and near pressure */
 	for(n=own_psys?1:0; n<neighbours; n++) {
 		/* disregard particles at the exact same location */
-		if(ptn->dist < FLT_EPSILON)
+		if(ptn[n].dist < FLT_EPSILON)
 			continue;
 
 		sub_v3_v3(ptn[n].co, pa->prev_state.co);
@@ -2310,7 +2310,7 @@
 	/* main calculations */
 	for(n=own_psys?1:0; n<neighbours; n++) {
 		/* disregard particles at the exact same location */
-		if(ptn->dist < FLT_EPSILON)
+		if(ptn[n].dist < FLT_EPSILON)
 			continue;
 
 		npa = psys->particles + ptn[n].index;




More information about the Bf-blender-cvs mailing list