[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28346] branches/branch-farsthary/source/ blender/blenkernel/intern/particle_system.c: Correcting viscosity algorithm to proper use neighbors relative particle speed .

Raul Fernandez Hernandez farsthary at gmail.com
Thu Apr 22 17:51:31 CEST 2010


Revision: 28346
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28346
Author:   farsthary
Date:     2010-04-22 17:51:31 +0200 (Thu, 22 Apr 2010)

Log Message:
-----------
Correcting viscosity algorithm to proper use neighbors relative particle speed.

Modified Paths:
--------------
    branches/branch-farsthary/source/blender/blenkernel/intern/particle_system.c

Modified: branches/branch-farsthary/source/blender/blenkernel/intern/particle_system.c
===================================================================
--- branches/branch-farsthary/source/blender/blenkernel/intern/particle_system.c	2010-04-22 15:07:00 UTC (rev 28345)
+++ branches/branch-farsthary/source/blender/blenkernel/intern/particle_system.c	2010-04-22 15:51:31 UTC (rev 28346)
@@ -2326,7 +2326,7 @@
 			second_particle = psys->particles + ptn[n].index;
 			q = ptn[n].dist/radius;
 			
-			sub_v3_v3v3(temp, v, second_particle->prev_state.vel);
+			sub_v3_v3v3(temp, pa->state.vel, second_particle->state.vel);
 			
 			u = dot_v3v3(ptn[n].co, temp);
 





More information about the Bf-blender-cvs mailing list