forked from bartvdbraak/blender
Little cloth code cleanup needed because of from new cache code merge
This commit is contained in:
parent
f95f4ac8b4
commit
0e8a6448dd
@ -393,8 +393,6 @@ DerivedMesh *clothModifier_do(ClothModifierData *clmd, Object *ob, DerivedMesh *
|
||||
BKE_ptcache_id_time(&pid, framenr, &startframe, &endframe, ×cale);
|
||||
clmd->sim_parms->timescale= timescale;
|
||||
|
||||
/* TODO: use timescale somewhere! */
|
||||
|
||||
if(!result) {
|
||||
cache->flag &= ~PTCACHE_SIMULATION_VALID;
|
||||
cache->simframe= 0;
|
||||
@ -440,9 +438,6 @@ DerivedMesh *clothModifier_do(ClothModifierData *clmd, Object *ob, DerivedMesh *
|
||||
else if(framenr > endframe) {
|
||||
framenr= endframe;
|
||||
}
|
||||
|
||||
/* dt is unused at the moment, calculated seperately in implicit.c */
|
||||
clmd->sim_parms->dt= 1.0f/clmd->sim_parms->stepsPerFrame;
|
||||
|
||||
if(cache->flag & PTCACHE_SIMULATION_VALID)
|
||||
framedelta= framenr - cache->simframe;
|
||||
|
Loading…
Reference in New Issue
Block a user