Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.c
| Show First 20 Lines • Show All 1,982 Lines • ▼ Show 20 Lines | if (!MAIN_VERSION_ATLEAST(bmain, 300, 36)) { | ||||
| } | } | ||||
| /* Update bone roll after a fix to vec_roll_to_mat3_normalized. */ | /* Update bone roll after a fix to vec_roll_to_mat3_normalized. */ | ||||
| LISTBASE_FOREACH (bArmature *, arm, &bmain->armatures) { | LISTBASE_FOREACH (bArmature *, arm, &bmain->armatures) { | ||||
| do_version_bones_roll(&arm->bonebase); | do_version_bones_roll(&arm->bonebase); | ||||
| } | } | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 300, 37)) { | |||||
| /* Node Editor: toggle overlays on. */ | |||||
| if (!DNA_struct_find(fd->filesdna, "SpaceNodeOverlay")) { | |||||
| LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) { | |||||
| LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { | |||||
| LISTBASE_FOREACH (SpaceLink *, space, &area->spacedata) { | |||||
| if (space->spacetype == SPACE_NODE) { | |||||
| SpaceNode *snode = (SpaceNode *)space; | |||||
| snode->overlay.flag |= SN_OVERLAY_SHOW_OVERLAYS; | |||||
| snode->overlay.flag |= SN_OVERLAY_SHOW_WIRE_COLORS; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| /** | /** | ||||
| * Versioning code until next subversion bump goes here. | * Versioning code until next subversion bump goes here. | ||||
| * | * | ||||
| * \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. */ | ||||
| } | } | ||||
| } | } | ||||