diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-17 14:40:59 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-17 15:27:59 +0300 |
commit | 2e635b650089289ef53b830b2007d34262cb959c (patch) | |
tree | ad9e858537d2e0e617f2d13a856b8a16219f8821 /source/blender/blenloader | |
parent | 75321a3d24d87ea3f333c55ee3880d7b3972c8eb (diff) |
Outliner: add ID type filter option for Blender File and Orphaned Data.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index add02f2bda0..c3a634f1e74 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -1301,5 +1301,18 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main) scene->display.matcap_ssao_samples = 16; } } + + if (!DNA_struct_elem_find(fd->filesdna, "SpaceOops", "short", "filter_id_type")) { + for (bScreen *screen = main->screen.first; screen; screen = screen->id.next) { + for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) { + for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) { + if (sl->spacetype == SPACE_OUTLINER) { + SpaceOops *soops = (SpaceOops *)sl; + soops->filter_id_type = ID_GR; + } + } + } + } + } } } |