Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_280.c
| Show First 20 Lines • Show All 4,846 Lines • ▼ Show 20 Lines | if (!DNA_struct_find(fd->filesdna, "XrSessionSettings")) { | ||||
| wm->xr.session_settings.draw_flags = (V3D_OFSDRAW_SHOW_GRIDFLOOR | | wm->xr.session_settings.draw_flags = (V3D_OFSDRAW_SHOW_GRIDFLOOR | | ||||
| V3D_OFSDRAW_SHOW_ANNOTATION); | V3D_OFSDRAW_SHOW_ANNOTATION); | ||||
| wm->xr.session_settings.clip_start = v3d_default->clip_start; | wm->xr.session_settings.clip_start = v3d_default->clip_start; | ||||
| wm->xr.session_settings.clip_end = v3d_default->clip_end; | wm->xr.session_settings.clip_end = v3d_default->clip_end; | ||||
| wm->xr.session_settings.flag = XR_SESSION_USE_POSITION_TRACKING; | wm->xr.session_settings.flag = XR_SESSION_USE_POSITION_TRACKING; | ||||
| } | } | ||||
| } | } | ||||
| /* Corrective smooth modifier scale*/ | |||||
| if (!DNA_struct_elem_find(fd->filesdna, "SolidifyModifierData", "float", "tolerance")) { | |||||
| for (Object *ob = bmain->objects.first; ob; ob = ob->id.next) { | |||||
| for (ModifierData *md = ob->modifiers.first; md; md = md->next) { | |||||
| if (md->type == eModifierType_Solidify) { | |||||
| SolidifyModifierData *smd = (SolidifyModifierData *)md; | |||||
| smd->tolerance = 0.003f; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
| /** | /** | ||||
| * 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: | ||||
| * - #do_versions_after_linking_280 in this file. | * - #do_versions_after_linking_280 in this file. | ||||
| * - "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. */ | /* Keep this block, even when empty. */ | ||||
| } | } | ||||
| } | } | ||||