Blender Git Loki
Git Commits -> Revision 7f98ba4
Revision 7f98ba4 by Bastien Montagne (master) December 10, 2018, 14:10 (GMT) |
Proper fix for rigidbody collections's objects missing rb data. We cannot let those data be generated on-the-fly in RBW evaluation anymore, since those would be added to CoW eval object and never ported back to orig objects. We *could* get orig objects in eval code, of course, but as in constratints, this is not really threadsafe and future proof, depsgraph evaluation should really write back to orig data as little as possible. So instead, add code to ensure required data is generated to objects when their collection is added to rigidbody world. Note that we *may* want to clean that up once collection is no more used by RB? On the other hand, people might want to keep those data around to be able to switch between different setups easily... So think it's OK to keep them at least for now. |
Commit Details:
Full Hash: 7f98ba4725f992e7f982ed4f0f7e910790380de3
Parent Commit: 073a011
Lines Changed: +74, -5
5 Modified Paths:
/source/blender/blenkernel/BKE_rigidbody.h (+4, -0) (Diff)
/source/blender/blenkernel/intern/rigidbody.c (+39, -2) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+13, -0) (Diff)
/source/blender/editors/physics/rigidbody_constraint.c (+0, -1) (Diff)
/source/blender/makesrna/intern/rna_rigidbody.c (+18, -2) (Diff)
/source/blender/blenkernel/intern/rigidbody.c (+39, -2) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+13, -0) (Diff)
/source/blender/editors/physics/rigidbody_constraint.c (+0, -1) (Diff)
/source/blender/makesrna/intern/rna_rigidbody.c (+18, -2) (Diff)