Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_defaults.c
| Show First 20 Lines • Show All 452 Lines • ▼ Show 20 Lines | for (ScrArea *sa = sc->areabase.first; sa; sa = sa->next) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { | for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { | ||||
| copy_v3_v3(scene->display.light_direction, (float[3]){M_SQRT1_3, M_SQRT1_3, M_SQRT1_3}); | copy_v3_v3(scene->display.light_direction, (float[3]){M_SQRT1_3, M_SQRT1_3, M_SQRT1_3}); | ||||
| copy_v2_fl2(scene->safe_areas.title, 0.1f, 0.05f); | copy_v2_fl2(scene->safe_areas.title, 0.1f, 0.05f); | ||||
| copy_v2_fl2(scene->safe_areas.action, 0.035f, 0.035f); | copy_v2_fl2(scene->safe_areas.action, 0.035f, 0.035f); | ||||
| /* Change default cubemap quality. */ | |||||
| scene->eevee.gi_filter_quality = 3.0f; | |||||
| } | } | ||||
| if (app_template == NULL) { | if (app_template == NULL) { | ||||
| /* Enable for UV sculpt (other brush types will be created as needed), | /* Enable for UV sculpt (other brush types will be created as needed), | ||||
| * without this the grab brush will be active but not selectable from the list. */ | * without this the grab brush will be active but not selectable from the list. */ | ||||
| Brush *brush = BLI_findstring(&bmain->brushes, "Grab", offsetof(ID, name) + 2); | Brush *brush = BLI_findstring(&bmain->brushes, "Grab", offsetof(ID, name) + 2); | ||||
| brush->ob_mode |= OB_MODE_EDIT; | brush->ob_mode |= OB_MODE_EDIT; | ||||
| } | } | ||||
| for (Brush *brush = bmain->brushes.first; brush; brush = brush->id.next) { | for (Brush *brush = bmain->brushes.first; brush; brush = brush->id.next) { | ||||
| brush->blur_kernel_radius = 2; | brush->blur_kernel_radius = 2; | ||||
| } | } | ||||
| } | } | ||||