Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_280.c
| Show First 20 Lines • Show All 2,837 Lines • ▼ Show 20 Lines | #undef EEVEE_GET_BOOL | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 280, 29)) { | if (!MAIN_VERSION_ATLEAST(bmain, 280, 29)) { | ||||
| for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { | for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { | ||||
| for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) { | 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) { | ||||
| if (sl->spacetype == SPACE_VIEW3D) { | if (sl->spacetype == SPACE_VIEW3D) { | ||||
| enum { V3D_OCCLUDE_WIRE = (1 << 14) }; | enum { V3D_OCCLUDE_WIRE = (1 << 14) }; | ||||
| View3D *v3d = (View3D *)sl; | View3D *v3d = (View3D *)sl; | ||||
| if (v3d->flag2 & V3D_OCCLUDE_WIRE) { | if (v3d->flag2 & V3D_OCCLUDE_WIRE) { | ||||
| v3d->overlay.edit_flag |= V3D_OVERLAY_EDIT_OCCLUDE_WIRE; | v3d->overlay.edit_flag |= V3D_OVERLAY_EDIT_RETOPOLOGY; | ||||
| v3d->flag2 &= ~V3D_OCCLUDE_WIRE; | v3d->flag2 &= ~V3D_OCCLUDE_WIRE; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* Files stored pre 2.5 (possibly re-saved with newer versions) may have non-visible | /* Files stored pre 2.5 (possibly re-saved with newer versions) may have non-visible | ||||
| ▲ Show 20 Lines • Show All 1,375 Lines • ▼ Show 20 Lines | for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 282, 2)) { | if (!MAIN_VERSION_ATLEAST(bmain, 282, 2)) { | ||||
| do_version_curvemapping_walker(bmain, do_version_curvemapping_flag_extend_extrapolate); | do_version_curvemapping_walker(bmain, do_version_curvemapping_flag_extend_extrapolate); | ||||
| for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { | for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { | ||||
jbakker: 0.4, 0.5 0.2, 0.2 is the default | |||||
| for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) { | for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) { | ||||
| sa->flag &= ~AREA_FLAG_UNUSED_6; | sa->flag &= ~AREA_FLAG_UNUSED_6; | ||||
| } | } | ||||
| } | } | ||||
| /* Add custom curve profile to toolsettings for bevel tool */ | /* Add custom curve profile to toolsettings for bevel tool */ | ||||
| if (!DNA_struct_elem_find(fd->filesdna, "ToolSettings", "CurveProfile", "custom_profile")) { | if (!DNA_struct_elem_find(fd->filesdna, "ToolSettings", "CurveProfile", "custom_profile")) { | ||||
| for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { | for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { | ||||
| ▲ Show 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | */ | ||||
| } | } | ||||
| /* Pose brush IK segments. */ | /* Pose brush IK segments. */ | ||||
| for (Brush *br = bmain->brushes.first; br; br = br->id.next) { | for (Brush *br = bmain->brushes.first; br; br = br->id.next) { | ||||
| if (br->pose_ik_segments == 0) { | if (br->pose_ik_segments == 0) { | ||||
| br->pose_ik_segments = 1; | br->pose_ik_segments = 1; | ||||
| } | } | ||||
| } | } | ||||
| /* Retopology overlay*/ | |||||
| if (!DNA_struct_elem_find(fd->filesdna, "ToolSettings", "RetopologySettings", "retopology")) { | |||||
| LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | |||||
| RetopologySettings *retopology = &scene->toolsettings->retopology; | |||||
| retopology->flag = RETOPOLOGY_OVERLAY_FILL_FACES; | |||||
| retopology->depth_mix_factor = 0.5f; | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
0.4, 0.5 0.2, 0.2 is the default