Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.c
| Show First 20 Lines • Show All 702 Lines • ▼ Show 20 Lines | void blo_do_versions_300(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. */ | ||||
| if (!DNA_struct_elem_find( | |||||
| fd->filesdna, "View3DOverlay", "float", "normals_constant_screen_size")) { | |||||
| LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) { | |||||
| LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { | |||||
| LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) { | |||||
| if (sl->spacetype == SPACE_VIEW3D) { | |||||
| View3D *v3d = (View3D *)sl; | |||||
| v3d->overlay.normals_constant_screen_size = 7.0f; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||