[Bf-blender-cvs] [43cc3fb17d3] soc-2020-outliner: Outliner: Show Mode Column by default

Nathan Craddock noreply at git.blender.org
Thu Aug 6 22:00:13 CEST 2020


Commit: 43cc3fb17d34db0b485b2d9e0a0cd368206364e1
Author: Nathan Craddock
Date:   Thu Aug 6 13:53:25 2020 -0600
Branches: soc-2020-outliner
https://developer.blender.org/rB43cc3fb17d34db0b485b2d9e0a0cd368206364e1

Outliner: Show Mode Column by default

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

M	source/blender/blenloader/intern/versioning_290.c

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

diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c
index 016b34278cf..8af5c5fd6f7 100644
--- a/source/blender/blenloader/intern/versioning_290.c
+++ b/source/blender/blenloader/intern/versioning_290.c
@@ -463,5 +463,17 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
         }
       }
     }
+
+    for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) {
+      LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) {
+        LISTBASE_FOREACH (SpaceLink *, space, &area->spacedata) {
+          if (space->spacetype == SPACE_OUTLINER) {
+            SpaceOutliner *space_outliner = (SpaceOutliner *)space;
+
+            space_outliner->flag |= SO_MODE_COLUMN;
+          }
+        }
+      }
+    }
   }
 }



More information about the Bf-blender-cvs mailing list