Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.c
| Show All 16 Lines | |||||
| /** \file | /** \file | ||||
| * \ingroup blenloader | * \ingroup blenloader | ||||
| */ | */ | ||||
| /* allow readfile to use deprecated functionality */ | /* allow readfile to use deprecated functionality */ | ||||
| #define DNA_DEPRECATED_ALLOW | #define DNA_DEPRECATED_ALLOW | ||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BLI_math_vector.h" | #include "BLI_math_vector.h" | ||||
| #include "BLI_path_util.h" | |||||
| #include "BLI_string.h" | #include "BLI_string.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "DNA_anim_types.h" | #include "DNA_anim_types.h" | ||||
| #include "DNA_armature_types.h" | #include "DNA_armature_types.h" | ||||
| #include "DNA_brush_types.h" | #include "DNA_brush_types.h" | ||||
| #include "DNA_collection_types.h" | #include "DNA_collection_types.h" | ||||
| #include "DNA_constraint_types.h" | #include "DNA_constraint_types.h" | ||||
| ▲ Show 20 Lines • Show All 700 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (Object *, ob, &bmain->objects) { | ||||
| if (ob->pose) { | if (ob->pose) { | ||||
| LISTBASE_FOREACH (bPoseChannel *, pchan, &ob->pose->chanbase) { | LISTBASE_FOREACH (bPoseChannel *, pchan, &ob->pose->chanbase) { | ||||
| do_version_constraints_spline_ik_joint_bindings(&pchan->constraints); | do_version_constraints_spline_ik_joint_bindings(&pchan->constraints); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** | if (!MAIN_VERSION_ATLEAST(bmain, 300, 18)) { | ||||
| * Versioning code until next subversion bump goes here. | |||||
| * | |||||
| * \note Be sure to check when bumping the version: | |||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | |||||
| * - "versioning_userdef.c", #do_versions_theme | |||||
| * | |||||
| * \note Keep this message at the bottom of the function. | |||||
| */ | |||||
| { | |||||
| /* Keep this block, even when empty. */ | |||||
| if (!DNA_struct_elem_find( | if (!DNA_struct_elem_find( | ||||
| fd->filesdna, "WorkSpace", "AssetLibraryReference", "asset_library_ref")) { | fd->filesdna, "WorkSpace", "AssetLibraryReference", "asset_library_ref")) { | ||||
| LISTBASE_FOREACH (WorkSpace *, workspace, &bmain->workspaces) { | LISTBASE_FOREACH (WorkSpace *, workspace, &bmain->workspaces) { | ||||
| BKE_asset_library_reference_init_default(&workspace->asset_library_ref); | BKE_asset_library_reference_init_default(&workspace->asset_library_ref); | ||||
| } | } | ||||
| } | } | ||||
| if (!DNA_struct_elem_find( | if (!DNA_struct_elem_find( | ||||
| Show All 9 Lines | if (!DNA_struct_elem_find( | ||||
| if (sfile->browse_mode != FILE_BROWSE_MODE_ASSETS) { | if (sfile->browse_mode != FILE_BROWSE_MODE_ASSETS) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| BKE_asset_library_reference_init_default(&sfile->asset_params->asset_library_ref); | BKE_asset_library_reference_init_default(&sfile->asset_params->asset_library_ref); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* Previously, only text ending with `.py` would run, apply this logic | |||||
| * to existing files so text that happens to have the "Register" enabled | |||||
| * doesn't suddenly start running code on startup that was previously ignored. */ | |||||
| LISTBASE_FOREACH (Text *, text, &bmain->texts) { | |||||
| if ((text->flags & TXT_ISSCRIPT) && !BLI_path_extension_check(text->id.name + 2, ".py")) { | |||||
| text->flags &= ~TXT_ISSCRIPT; | |||||
| } | |||||
| } | |||||
| } | |||||
| /** | |||||
| * Versioning code until next subversion bump goes here. | |||||
| * | |||||
| * \note Be sure to check when bumping the version: | |||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | |||||
| * - "versioning_userdef.c", #do_versions_theme | |||||
| * | |||||
| * \note Keep this message at the bottom of the function. | |||||
| */ | |||||
| { | |||||
| /* Keep this block, even when empty. */ | |||||
| } | } | ||||
| } | } | ||||