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.
This commit is contained in:
parent
12a6059f8a
commit
c4f961a54c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue