Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_290.c
| Show First 20 Lines • Show All 890 Lines • ▼ Show 20 Lines | void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain) | ||||
| * \note Be sure to check when bumping the version: | * \note Be sure to check when bumping the version: | ||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | * - "versioning_userdef.c", #blo_do_versions_userdef | ||||
| * - "versioning_userdef.c", #do_versions_theme | * - "versioning_userdef.c", #do_versions_theme | ||||
| * | * | ||||
| * \note Keep this message at the bottom of the function. | * \note Keep this message at the bottom of the function. | ||||
| */ | */ | ||||
| { | { | ||||
| /* Keep this block, even when empty. */ | /* Keep this block, even when empty. */ | ||||
| /* UV/Image Max resolution images in image editor. */ | |||||
| if (!DNA_struct_find(fd->filesdna, "SpaceImageOverlay")) { | |||||
| LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) { | |||||
| LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { | |||||
| LISTBASE_FOREACH (SpaceLink *, space, &area->spacedata) { | |||||
| if (space->spacetype == SPACE_IMAGE) { | |||||
| SpaceImage *sima = (SpaceImage *)space; | |||||
| sima->iuser.flag |= IMA_SHOW_MAX_RESOLUTION; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
| /* Remove options of legacy UV/Image editor */ | /* Remove options of legacy UV/Image editor */ | ||||
| for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { | for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { | ||||
| LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { | LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { | ||||
| LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) { | LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) { | ||||
| switch (sl->spacetype) { | switch (sl->spacetype) { | ||||
| case SPACE_IMAGE: { | case SPACE_IMAGE: { | ||||
| Show All 22 Lines | |||||