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:
Sergej Reich 2014-01-29 15:02:45 +01:00
parent 44cb138cf2
commit f17a1bd58b
Notes: blender-bot 2023-02-14 11:16:54 +01:00
Referenced by issue #38388, Creating a new scene with full copy sets rigidbody collision shapes to box.
1 changed files with 1 additions and 1 deletions

View File

@ -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);