[Bf-blender-cvs] [c4f961a54c1] master: Local view: don't restore selection when exiting local view.

Brecht Van Lommel noreply at git.blender.org
Wed Feb 20 19:09:26 CET 2019


Commit: c4f961a54c18e89eae184672f3939f47b9a896df
Author: Brecht Van Lommel
Date:   Wed Feb 20 18:17:33 2019 +0100
Branches: master
https://developer.blender.org/rBc4f961a54c18e89eae184672f3939f47b9a896df

Local view: don't restore selection when exiting local view.

Losing the selection can be inconvenient, and it's easy to select all local
objects before exiting local view if needed.

===================================================================

M	source/blender/editors/space_view3d/view3d_view.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c
index 434a55a27b5..7b3b97dbb9c 100644
--- a/source/blender/editors/space_view3d/view3d_view.c
+++ b/source/blender/editors/space_view3d/view3d_view.c
@@ -1336,18 +1336,6 @@ static bool view3d_localview_exit(
 
 		restore_localviewdata(depsgraph, wm, win, bmain, sa, smooth_viewtx);
 
-		Object *obedit = OBEDIT_FROM_VIEW_LAYER(view_layer);
-		for (base = FIRSTBASE(view_layer); base; base = base->next) {
-			if (base->local_view_bits & local_view_bit) {
-				base->local_view_bits &= ~local_view_bit;
-				if (base->object != obedit) {
-					ED_object_base_select(base, BA_SELECT);
-				}
-			}
-		}
-
-		DEG_on_visible_update(bmain, false);
-
 		return true;
 	}
 	else {



More information about the Bf-blender-cvs mailing list