diff options
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_dragdrop.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_dragdrop.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/source/blender/editors/space_outliner/outliner_dragdrop.c b/source/blender/editors/space_outliner/outliner_dragdrop.c index 87f42aa75d2..978a2cc4af4 100644 --- a/source/blender/editors/space_outliner/outliner_dragdrop.c +++ b/source/blender/editors/space_outliner/outliner_dragdrop.c @@ -206,19 +206,9 @@ static TreeElement *outliner_drop_insert_collection_find( return NULL; } - /* We can't insert/before after master collection. */ + /* We can't insert before/after master collection. */ if (collection->flag & COLLECTION_IS_MASTER) { - if (*r_insert_type == TE_INSERT_BEFORE) { - /* can't go higher than master collection, insert into it */ - *r_insert_type = TE_INSERT_INTO; - } - else if (*r_insert_type == TE_INSERT_AFTER) { - te = te->subtree.last; - collection = outliner_collection_from_tree_element(te); - if (!collection) { - return NULL; - } - } + *r_insert_type = TE_INSERT_INTO; } return te; |