Merge branch 'blender-v3.2-release'

This commit is contained in:
Bastien Montagne
2022-05-13 18:07:31 +02:00

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;
}
}