Blender Git Commit Log

Git Commits -> Revision 30116a5

Revision 30116a5 by Bastien Montagne (master)
June 13, 2019, 16:02 (GMT)
Fix T65109: Object deleted when removed from the RigidBodyWorld collection.

While user should never do that, it appears many end up using a 'view
layer' instancing collection as RBW collection, and even worse, have
objects in that unique collection.

Therefore, when removing RB simulation from an object, which among other
things has to remove it from the RBW collection, it would fully delete
the object from the blend file.

This fix merely checks the usercount of RB-removed object, and if it is
at 1 (which means object was in a single collection), it adds it to the
scene's master collection first.

Commit Details:

Full Hash: 30116a5274930ece7acaf8b4c6d5e389b32f8b69
Parent Commit: 245129e
Lines Changed: +9, -0

1 Modified Path:

/source/blender/blenkernel/intern/rigidbody.c (+9, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021