BKE Collection: Add new function to rebuild parent relationships.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 22 May 2019 20:51:36 +0000 (22:51 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 22 May 2019 21:33:27 +0000 (23:33 +0200)
commitd1f96f9b1194404ffafd2540cd2928048779656e
tree4137cd2f2ccc8cfbb5cbbd1d21762df49fa1b161
parent5a3c44937f64776099125577126766c67f96139a
BKE Collection: Add new function to rebuild parent relationships.

It's not always possible to keep 'by hand' parent relationships valid in
collections hierarchy. Add functions to remake those
(re-using/factorizing code from `readfile.c` `lib_link_collection_data()`
function).

Can't stress again how painful it is to have those kind of backward
relationships in our data structures, those *always* end up being
serious issues to keep in sync... Should only be generated on the fly
when needed, period. :(
source/blender/blenkernel/BKE_collection.h
source/blender/blenkernel/intern/collection.c
source/blender/blenloader/intern/readfile.c