Fix T92347: Append function excludes Collections that do not contain Objects directly.
Collections directly selected by the user should always be instantiated. Regression from recent append code refactor.
This commit is contained in:
@@ -462,7 +462,8 @@ static void wm_append_loose_data_instantiate(WMLinkAppendData *lapp_data,
|
||||
* children.
|
||||
*/
|
||||
Collection *collection = (Collection *)id;
|
||||
bool do_add_collection = false;
|
||||
/* We always add collections directly selected by the user. */
|
||||
bool do_add_collection = (item->append_tag & WM_APPEND_TAG_INDIRECT) == 0;
|
||||
LISTBASE_FOREACH (CollectionObject *, coll_ob, &collection->gobject) {
|
||||
Object *ob = coll_ob->ob;
|
||||
if (!object_in_any_scene(bmain, ob)) {
|
||||
|
||||
Reference in New Issue
Block a user