Local View: Objects to be selected once back to regular view
authorDalai Felinto <dfelinto@gmail.com>
Wed, 28 Nov 2018 00:17:23 +0000 (22:17 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 28 Nov 2018 00:17:59 +0000 (22:17 -0200)
They were already selected, but we needed to bump depsgraph.

source/blender/editors/space_view3d/view3d_view.c

index 7b3fe07769e7e9f0104c3086dc195a26fc726027..059274a14fde4bfe38c5c2edf3320655a978b1a4 100644 (file)
@@ -1384,6 +1384,7 @@ static int localview_exec(bContext *C, wmOperator *op)
 
                /* Unselected objects become selected when exiting. */
                if (v3d->localvd == NULL) {
+                       DEG_id_tag_update(&scene->id, DEG_TAG_SELECT_UPDATE);
                        WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene);
                }
                else {