Point cache was reset in many updates where it shouldn't have been reset.

Preview render crashed with "only render" children.
This commit is contained in:
2007-11-30 07:41:22 +00:00
parent e893c9d739
commit 04a009b047
2 changed files with 8 additions and 7 deletions

View File

@@ -4271,7 +4271,7 @@ void psys_to_softbody(Object *ob, ParticleSystem *psys, int force_recalc)
if((psys->softflag&OB_SB_ENABLE)==0) return;
if(ob->recalc && (ob->recalc&OB_RECALC_TIME)==0)
if(psys->recalc || force_recalc)
psys->softflag|=OB_SB_REDO;
/* let's replace the object's own softbody with the particle softbody */
@@ -4284,12 +4284,6 @@ void psys_to_softbody(Object *ob, ParticleSystem *psys, int force_recalc)
/* swich to new ones */
ob->soft=psys->soft;
ob->softflag=psys->softflag;
/* signal for before/free bake */
//if(psys->flag & PSYS_SOFT_BAKE || force_recalc){
// sbObjectToSoftbody(ob);
// psys->flag &= ~PSYS_SOFT_BAKE;
//}
/* do softbody */
sbObjectStep(ob, (float)G.scene->r.cfra, NULL, psys_count_keys(psys));