Revision: 19568
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19568
Author:   jhk
Date:     2009-04-06 21:32:23 +0200 (Mon, 06 Apr 2009)

Log Message:
-----------
Fix for: [#18354] Controlling with a texture the particles DENSITY parameter 
doesn't work.

If the density texture was taken into account with hair parent particles there 
were cases when there weren't any parents left to interpolate children from. 
Now a density texture is only taken into account for hair child particles.

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    
2009-04-06 18:08:15 UTC (rev 19567)
+++ trunk/blender/source/blender/blenkernel/intern/particle_system.c    
2009-04-06 19:32:23 UTC (rev 19568)
@@ -1616,7 +1616,7 @@
 
        NormalQuat(pa->r_rot);
 
-       if(part->distr!=PART_DISTR_GRID && part->from != PART_FROM_VERT){
+       if(part->type!=PART_HAIR && part->distr!=PART_DISTR_GRID && part->from 
!= PART_FROM_VERT){
                /* any unique random number will do (r_ave[0]) */
                if(ptex.exist < 0.5*(1.0+pa->r_ave[0]))
                        pa->flag |= PARS_UNEXIST;


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

Reply via email to