Fix (unreported) broken collections after undo/redo, or remapping (leading to crashes).
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 22 May 2019 20:57:16 +0000 (22:57 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 22 May 2019 21:33:27 +0000 (23:33 +0200)
commit91aafd56e3af8313b49a87a9821c9abe9b901126
treeccb5c2005dd1f5c6252baeda2e7bc5acabf113c1
parentd1f96f9b1194404ffafd2540cd2928048779656e
Fix (unreported) broken collections after undo/redo, or remapping (leading to crashes).

Those are two cases where keeping infamous backward `parents` pointers
of collections in sync is kind of impossible to do... So rebuilding
those relationships from scratch instead.

Fixes e.g. a crash when undoing, then reloading a library, and likely
many more weird ones like that.

Uncovered while investigating T64764.
source/blender/blenkernel/intern/library_remap.c
source/blender/blenloader/intern/readfile.c