Fix (unreported) broken logic in `BKE_collection_add_from_collection`.
That function was adding given new collection to all ancestors of the reference one, instead of only to its immediate parents.
This commit is contained in:
parent
c760ab0dda
commit
a7cf6ad547
|
@ -452,7 +452,7 @@ void BKE_collection_add_from_collection(Main *bmain,
|
|||
bool is_instantiated = false;
|
||||
|
||||
FOREACH_SCENE_COLLECTION_BEGIN (scene, collection) {
|
||||
if (!ID_IS_LINKED(collection) && BKE_collection_has_collection(collection, collection_src)) {
|
||||
if (!ID_IS_LINKED(collection) && collection_find_child(collection, collection_src)) {
|
||||
collection_child_add(collection, collection_dst, 0, true);
|
||||
is_instantiated = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue