Page MenuHome

Fix T70667: crash playing animation (after deleting rigid body obj)
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Oct 10 2019, 1:44 PM.

Details

Summary

Was crashing due to RBW mssing shared->physics_world.
This can be gained back by BKE_rigidbody_validate_sim_world.

Other possibility would be to check for shared->physics_world early in
BKE_scene_check_rigidbody_active?

Diff Detail

Repository
rB Blender
Branch
T70667 (branched from master)
Build Status
Buildable 5309
Build 5309: arc lint + arc unit

Event Timeline

I guess that’s a valid change… Would be worth adding a comment (with report reference) about why/how that case (no rebuild required, yet NULL physics_world) can happen? This seems to be related to undo/redo, from quick skim over the report?

This revision is now accepted and ready to land.Oct 11 2019, 4:29 PM