Blender Git Commit Log

Git Commits -> Revision 105ae3b

Revision 105ae3b by Bastien Montagne (master)
July 16, 2019, 14:08 (GMT)
Fix T66944: Rigid Body Constraint in duplicated collection is not added to RigidBodyConstraints collection.

We only had a very limited, specific handling of that in collection
duplication code, but this has to be handled at a much more general
level in Object copy code itself, since it makes no sense to duplicate
rigidbody object data without adding new copy to relevant rigidbody
collections...

WARNING: This is a fairly risky rework of rigidbody handling logic
when copying an Object data-block. It is *NOT* considered safe enough
for 2.80 release.

I tried to take into account copy flags to not mess with other IDs
(collections) when we are copying outside of Main, and also not do deg
tags when this is forbidden, but risk of something going wrong here is
too high...

Commit Details:

Full Hash: 105ae3be9993a646615499bf793cb14549e4104d
Parent Commit: e6e69a2
Lines Changed: +59, -24

5 Modified Paths:

/source/blender/blenkernel/BKE_collection.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_rigidbody.h (+4, -2) (Diff)
/source/blender/blenkernel/intern/collection.c (+1, -11) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -2) (Diff)
/source/blender/blenkernel/intern/rigidbody.c (+52, -8) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021