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);
 


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to