Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_260.c
| Show First 20 Lines • Show All 2,447 Lines • ▼ Show 20 Lines | if (!MAIN_VERSION_ATLEAST(main, 269, 3)) { | ||||
| /* Update files using invalid (outdated) outlinevis Outliner values. */ | /* Update files using invalid (outdated) outlinevis Outliner values. */ | ||||
| for (sc = main->screen.first; sc; sc = sc->id.next) { | for (sc = main->screen.first; sc; sc = sc->id.next) { | ||||
| for (sa = sc->areabase.first; sa; sa = sa->next) { | for (sa = sc->areabase.first; sa; sa = sa->next) { | ||||
| for (sl = sa->spacedata.first; sl; sl = sl->next) { | for (sl = sa->spacedata.first; sl; sl = sl->next) { | ||||
| if (sl->spacetype == SPACE_OUTLINER) { | if (sl->spacetype == SPACE_OUTLINER) { | ||||
| SpaceOops *so = (SpaceOops *)sl; | SpaceOops *so = (SpaceOops *)sl; | ||||
| if (!ELEM(so->outlinevis, SO_ALL_SCENES, SO_CUR_SCENE, SO_VISIBLE, SO_SELECTED, SO_ACTIVE, | if (!ELEM(so->outlinevis, | ||||
| SO_SAME_TYPE, SO_GROUPS, SO_LIBRARIES, SO_SEQUENCE, SO_DATABLOCKS, | SO_ALL_SCENES, | ||||
| SO_GROUPS, | |||||
| SO_LIBRARIES, | |||||
| SO_SEQUENCE, | |||||
| SO_DATABLOCKS, | |||||
| SO_USERDEF)) | SO_USERDEF)) | ||||
| { | { | ||||
| so->outlinevis = SO_ALL_SCENES; | so->outlinevis = SO_ALL_SCENES; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines | |||||