Fix T58993: Duplicating after setting a rigid body world crashes Blender.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 10 Dec 2018 13:10:12 +0000 (14:10 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 10 Dec 2018 14:10:29 +0000 (15:10 +0100)
commit073a011f91a52cf1648b2d76606f0f2fff412098
tree0916ce9af8bf5ff51f6e67dd4223d5f32860a41e
parent448731ac92c5fe721c08a4dde343be012b49716d
Fix T58993: Duplicating after setting a rigid body world crashes Blender.

There is no guarantee that object in rigidbody collection already have a
valid rgigidbody data when rebuilding deg relations, that is often
generated on-the-fly by actual rigid body simulation.

Note that this can be an issue when generating deg relations I guess...
But at least it won't crash anymore.
source/blender/depsgraph/intern/builder/deg_builder_relations.cc