Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_280.c
| Show First 20 Lines • Show All 877 Lines • ▼ Show 20 Lines | if (!MAIN_VERSION_ATLEAST(main, 280, 3)) { | ||||
| } | } | ||||
| for (Group *group = main->group.first; group; group = group->id.next) { | for (Group *group = main->group.first; group; group = group->id.next) { | ||||
| if (group->view_layer != NULL){ | if (group->view_layer != NULL){ | ||||
| do_version_view_layer_visibility(group->view_layer); | do_version_view_layer_visibility(group->view_layer); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| { | |||||
| if (DNA_struct_elem_find(fd->filesdna, "SpaceOops", "int", "filter") == false) { | |||||
| bScreen *sc; | |||||
| ScrArea *sa; | |||||
| SpaceLink *sl; | |||||
| /* Update files using invalid (outdated) outlinevis Outliner values. */ | |||||
| for (sc = main->screen.first; sc; sc = sc->id.next) { | |||||
| for (sa = sc->areabase.first; sa; sa = sa->next) { | |||||
| for (sl = sa->spacedata.first; sl; sl = sl->next) { | |||||
| if (sl->spacetype == SPACE_OUTLINER) { | |||||
| SpaceOops *so = (SpaceOops *)sl; | |||||
| if (!ELEM(so->outlinevis, | |||||
| SO_ALL_SCENES, | |||||
| SO_GROUPS, | |||||
| SO_LIBRARIES, | |||||
| SO_SEQUENCE, | |||||
| SO_DATABLOCKS, | |||||
| SO_USERDEF, | |||||
| SO_ID_ORPHANS, | |||||
| SO_VIEW_LAYER, | |||||
| SO_COLLECTIONS)) | |||||
| { | |||||
| so->outlinevis = SO_VIEW_LAYER; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||