Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.cc
| Show First 20 Lines • Show All 3,836 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 305, 7)) { | if (!MAIN_VERSION_ATLEAST(bmain, 305, 7)) { | ||||
| LISTBASE_FOREACH (Light *, light, &bmain->lights) { | LISTBASE_FOREACH (Light *, light, &bmain->lights) { | ||||
| light->radius = light->area_size; | light->radius = light->area_size; | ||||
| } | } | ||||
| /* Grease Pencil Build modifier: Set default value for new natural drawspeed factor and maximum | |||||
| * gap. */ | |||||
| if (!DNA_struct_elem_find(fd->filesdna, "BuildGpencilModifierData", "float", "speed_fac") || | |||||
| !DNA_struct_elem_find(fd->filesdna, "BuildGpencilModifierData", "float", "speed_maxgap")) { | |||||
| LISTBASE_FOREACH (Object *, ob, &bmain->objects) { | |||||
| LISTBASE_FOREACH (GpencilModifierData *, md, &ob->greasepencil_modifiers) { | |||||
| if (md->type == eGpencilModifierType_Build) { | |||||
| BuildGpencilModifierData *mmd = (BuildGpencilModifierData *)md; | |||||
| mmd->speed_fac = 1.2f; | |||||
| mmd->speed_maxgap = 0.5f; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
| /** | /** | ||||
| * 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 | ||||
| Show All 15 Lines | |||||