Commit: 96b9f45d7a104cce093da174a4b9d076250f326d
Author: Bastien Montagne
Date:   Wed Mar 30 17:10:54 2016 +0200
Branches: blender-v2.77-release
https://developer.blender.org/rB96b9f45d7a104cce093da174a4b9d076250f326d

Partly fix (unreported) particles not updating correctly when changing settings.

Point-cached particles (those using simulations) would not update at all 
outside of
first frame, due to PSYS_RECALC_RESET flag being ingnored in `system_step()`...

For some mysterious reasons, udate is still non-fully functional outside of 
startframe
(e.g. changing face distribution between random and jittered), but at least 
when choosing
'Vertices' you get particles from verts and not faces!

===================================================================

M       source/blender/blenkernel/intern/particle_system.c

===================================================================

diff --git a/source/blender/blenkernel/intern/particle_system.c 
b/source/blender/blenkernel/intern/particle_system.c
index e9ce532..87f39f2 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -3878,8 +3878,8 @@ static void system_step(ParticleSimulationData *sim, 
float cfra)
                
                BKE_ptcache_id_time(pid, sim->scene, 0.0f, &startframe, 
&endframe, NULL);
 
-               /* clear everythin on start frame */
-               if (cfra == startframe) {
+               /* clear everything on start frame, or when psys needs full 
reset! */
+               if ((cfra == startframe) || (psys->recalc & PSYS_RECALC_RESET)) 
{
                        BKE_ptcache_id_reset(sim->scene, pid, 
PTCACHE_RESET_OUTDATED);
                        BKE_ptcache_validate(cache, startframe);
                        cache->flag &= ~PTCACHE_REDO_NEEDED;

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

Reply via email to