[Bf-blender-cvs] [b60c43aabde] master: Outliner: Set View Layer as the default mode for new outliners

Dalai Felinto noreply at git.blender.org
Fri May 24 20:31:45 CEST 2019


Commit: b60c43aabde34c338f973298af08adce65a3a4b6
Author: Dalai Felinto
Date:   Fri May 24 15:24:50 2019 -0300
Branches: master
https://developer.blender.org/rBb60c43aabde34c338f973298af08adce65a3a4b6

Outliner: Set View Layer as the default mode for new outliners

This mode was supposed to be the new default since 2 years already.

But apparently, it was tackled only for doversion, but not for new
outliners (see 7f596d39dff11).

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

M	source/blender/editors/space_outliner/space_outliner.c

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

diff --git a/source/blender/editors/space_outliner/space_outliner.c b/source/blender/editors/space_outliner/space_outliner.c
index 313e6014b88..091efc56c09 100644
--- a/source/blender/editors/space_outliner/space_outliner.c
+++ b/source/blender/editors/space_outliner/space_outliner.c
@@ -303,6 +303,7 @@ static SpaceLink *outliner_new(const ScrArea *UNUSED(area), const Scene *UNUSED(
   soutliner->spacetype = SPACE_OUTLINER;
   soutliner->filter_id_type = ID_GR;
   soutliner->show_restrict_flags = SO_RESTRICT_ENABLE | SO_RESTRICT_HIDE;
+  soutliner->outlinevis = SO_VIEW_LAYER;
 
   /* header */
   ar = MEM_callocN(sizeof(ARegion), "header for outliner");



More information about the Bf-blender-cvs mailing list