Page MenuHome

Fix T79117: dependency cycle with passive rigid body objects
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Jul 30 2020, 2:57 PM.

Details

Summary

I only have a very limited understanding of how rigid bodies are
integrated into the depsgraph. However, it seems to make sense that
passive objects don't have to depend on the simulation and don't
need to sync back the transforms. Those objects are ignored in
BKE_rigidbody_sync_transforms anyway.

Alls tests pass after this change, but not sure if we are testing
simulations yet.

Diff Detail

Repository
rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Jul 30 2020, 2:57 PM
Jacques Lucke (JacquesLucke) created this revision.

I feel that the logic is sound and the code looks good to me at least.

I'm doing kinda the same things in https://developer.blender.org/D5797

I do like your split if style more than the big if statement I did in mine.

So perhaps we can apply this first and I'll modify the other patch so it applies on top of this?

This revision is now accepted and ready to land.Jul 30 2020, 6:16 PM