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;
+          }
+        }
+      }
+    }
   }
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to