diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-01-27 00:33:28 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-01-27 00:37:08 +0300 |
commit | 6634eb34908c970025de69bc6875fbb72174a079 (patch) | |
tree | 642b3761e320b2fc8e6553a3e7be51ed19bf9c06 /source/blender/editors | |
parent | 5798345c99b118c9b372f3f57ab8a6a4c9b19760 (diff) |
Make outliner new collection operator work via viewport too
Technically this revert b3bcbc9e85aa. This however doesn't seem to be needed
any longer.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_collections.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_collections.c b/source/blender/editors/space_outliner/outliner_collections.c index 38a66bff381..8aacc0a4368 100644 --- a/source/blender/editors/space_outliner/outliner_collections.c +++ b/source/blender/editors/space_outliner/outliner_collections.c @@ -315,14 +315,12 @@ void OUTLINER_OT_collection_unlink(wmOperatorType *ot) static int collection_new_exec(bContext *C, wmOperator *UNUSED(op)) { - SpaceOops *soops = CTX_wm_space_outliner(C); Main *bmain = CTX_data_main(C); Scene *scene = CTX_data_scene(C); ViewLayer *view_layer = CTX_data_view_layer(C); SceneCollection *scene_collection = BKE_collection_add(&scene->id, NULL, COLLECTION_TYPE_NONE, NULL); BKE_collection_link(view_layer, scene_collection); - outliner_cleanup_tree(soops); DEG_relations_tag_update(bmain); WM_main_add_notifier(NC_SCENE | ND_LAYER, NULL); return OPERATOR_FINISHED; |