Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_290.c
| Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | if (!DNA_struct_elem_find(fd->filesdna, "BrushGpencilSettings", "float", "random_hue")) { | ||||
| 1, 0.0f, 0.0f, 1.0f, 1.0f); | 1, 0.0f, 0.0f, 1.0f, 1.0f); | ||||
| brush->gpencil_settings->curve_rand_value = BKE_curvemapping_add( | brush->gpencil_settings->curve_rand_value = BKE_curvemapping_add( | ||||
| 1, 0.0f, 0.0f, 1.0f, 1.0f); | 1, 0.0f, 0.0f, 1.0f, 1.0f); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 290, 3)) { | |||||
| /* Disable Curve Normals. */ | |||||
| 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.edit_flag &= ~V3D_OVERLAY_EDIT_CU_NORMALS; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| /** | /** | ||||
| * 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_version_defaults_userpref_blend | * - "versioning_userdef.c", #BLO_version_defaults_userpref_blend | ||||
| * - "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. */ | |||||
| } | } | ||||
| } | } | ||||