Fix (unreported) broken 'make override' of objects in master collection.

Master collections are not in Main list of collections, so we also need
to check the scenes.
This commit is contained in:
Bastien Montagne 2020-10-13 12:26:44 +02:00
parent 7d5d567dba
commit 6b21b82704
1 changed files with 5 additions and 0 deletions

View File

@ -2306,6 +2306,11 @@ static bool make_override_library_object_overridable_check(Main *bmain, Object *
return true;
}
}
LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {
if (!ID_IS_LINKED(scene) && BKE_collection_has_object(scene->master_collection, object)) {
return true;
}
}
return false;
}