Fix T70875: Library Override: Clicking an Library Overriden Object crashes Blender.
We also need to rebuild the whole collection/viewlayer object cache thing when we relink an objector collection in a collection (since it might be part of a view layer). Again, usual disclaimer about how inneficient this is currently, needs a serious refactor to only tag caches as dirty, and actually rebuild the whole thing on access.
This commit is contained in:
parent
c37ee984a3
commit
74af698769
@ -677,7 +677,8 @@ void BKE_libblock_relink_ex(
|
||||
* Maybe we should do a per-ID callback for this instead?
|
||||
*/
|
||||
switch (GS(id->name)) {
|
||||
case ID_SCE: {
|
||||
case ID_SCE:
|
||||
case ID_GR: {
|
||||
if (old_id) {
|
||||
switch (GS(old_id->name)) {
|
||||
case ID_OB:
|
||||
@ -707,6 +708,8 @@ void BKE_libblock_relink_ex(
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
DEG_relations_tag_update(bmain);
|
||||
}
|
||||
|
||||
static int id_relink_to_newid_looper(void *UNUSED(user_data),
|
||||
|
Loading…
Reference in New Issue
Block a user