[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14299] trunk/blender/source/blender/ blenkernel/intern/particle_system.c: Fix for bug: [#8817] Particleradius doesn't update until changing the amount of particles

Janne Karhu jhkarh at utu.fi
Mon Mar 31 23:51:46 CEST 2008


Revision: 14299
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14299
Author:   jhk
Date:     2008-03-31 23:51:46 +0200 (Mon, 31 Mar 2008)

Log Message:
-----------
Fix for bug: [#8817] Particleradius doesn't update until changing the amount of particles
-Reactor particles didn't initialize their birth times etc. properly when cache was cleared

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	2008-03-31 20:54:00 UTC (rev 14298)
+++ trunk/blender/source/blender/blenkernel/intern/particle_system.c	2008-03-31 21:51:46 UTC (rev 14299)
@@ -2078,6 +2078,10 @@
 	int stack_index = modifiers_indexInObject(ob,(ModifierData*)psmd);
 
 	BKE_ptcache_id_clear((ID *)ob, PTCACHE_CLEAR_ALL, cfra, stack_index);
+
+	/* reactors need to initialize particles always since their birth times might have changed */
+	if(psys && psys->part && psys->part->type == PART_REACTOR)
+		psys->recalc |= PSYS_INIT;
 }
 static void write_particles_to_cache(Object *ob, ParticleSystem *psys, int cfra)
 {





More information about the Bf-blender-cvs mailing list