Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_defaults.c
| Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) { | ||||
| for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) { | for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) { | ||||
| switch (sl->spacetype) { | switch (sl->spacetype) { | ||||
| case SPACE_VIEW3D: { | case SPACE_VIEW3D: { | ||||
| View3D *v3d = (View3D *)sl; | View3D *v3d = (View3D *)sl; | ||||
| v3d->overlay.texture_paint_mode_opacity = 1.0f; | v3d->overlay.texture_paint_mode_opacity = 1.0f; | ||||
| v3d->overlay.weight_paint_mode_opacity = 1.0f; | v3d->overlay.weight_paint_mode_opacity = 1.0f; | ||||
| v3d->overlay.vertex_paint_mode_opacity = 1.0f; | v3d->overlay.vertex_paint_mode_opacity = 1.0f; | ||||
| /* Use dimmed selected edges. */ | |||||
| v3d->overlay.edit_flag &= ~V3D_OVERLAY_EDIT_EDGES; | |||||
| /* grease pencil settings */ | /* grease pencil settings */ | ||||
| v3d->vertex_opacity = 1.0f; | v3d->vertex_opacity = 1.0f; | ||||
| v3d->gp_flag |= V3D_GP_SHOW_EDIT_LINES; | v3d->gp_flag |= V3D_GP_SHOW_EDIT_LINES; | ||||
| /* Skip startups that use the viewport color by default. */ | /* Skip startups that use the viewport color by default. */ | ||||
| if (v3d->shading.background_type != V3D_SHADING_BACKGROUND_VIEWPORT) { | if (v3d->shading.background_type != V3D_SHADING_BACKGROUND_VIEWPORT) { | ||||
| copy_v3_fl(v3d->shading.background_color, 0.05f); | copy_v3_fl(v3d->shading.background_color, 0.05f); | ||||
| } | } | ||||
| break; | break; | ||||
| ▲ Show 20 Lines • Show All 254 Lines • Show Last 20 Lines | |||||