Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Karhu <jhkarh@gmail.com>2008-04-01 01:51:46 +0400
committerJanne Karhu <jhkarh@gmail.com>2008-04-01 01:51:46 +0400
commitfd46b91650b891036c360de4e3a6ef14df5d6b91 (patch)
tree61bb56d62ffbd68f36e551a7e3f0f655d4b074c5 /source/blender/blenkernel
parent0ce8fe1ec48df4d632eeb128fb07d11a0fe2a5c2 (diff)
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
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/particle_system.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index e8b85b7c6eb..0a1f66f75ad 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -2078,6 +2078,10 @@ void clear_particles_from_cache(Object *ob, ParticleSystem *psys, int cfra)
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)
{