Fix T38388: Creating a new scene with full copy sets rigidbody collision shapes to box.
Tweak world rebuilding logic, so it's not done before object data was updated.
This commit is contained in:
parent
44cb138cf2
commit
f17a1bd58b
@ -1307,7 +1307,7 @@ void BKE_rigidbody_rebuild_world(Scene *scene, float ctime)
|
||||
cache->flag |= PTCACHE_OUTDATED;
|
||||
}
|
||||
|
||||
if (ctime <= startframe + 1 && rbw->ltime == startframe) {
|
||||
if (ctime == startframe + 1 && rbw->ltime == startframe) {
|
||||
if (cache->flag & PTCACHE_OUTDATED) {
|
||||
BKE_ptcache_id_reset(scene, &pid, PTCACHE_RESET_OUTDATED);
|
||||
rigidbody_update_simulation(scene, rbw, true);
|
||||
|
Loading…
Reference in New Issue
Block a user