Merge branch 'blender-v3.2-release'

This commit is contained in:
Bastien Montagne 2022-05-13 18:07:31 +02:00
commit fa7224d8ed
Notes: blender-bot 2023-05-22 12:40:41 +02:00
Referenced by issue #98136, Crash undoing "Make Library Override" for linked collection with shapekey
1 changed files with 3 additions and 1 deletions

View File

@ -400,7 +400,9 @@ typedef struct LooseDataInstantiateContext {
static bool object_in_any_scene(Main *bmain, Object *ob)
{
LISTBASE_FOREACH (Scene *, sce, &bmain->scenes) {
if (BKE_scene_object_find(sce, ob)) {
/* #BKE_scene_has_object checks bases cache of the scenes' viewlayer, not actual content of
* their collections. */
if (BKE_collection_has_object_recursive(sce->master_collection, ob)) {
return true;
}
}