Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_290.c
| Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
| #include "DNA_rigidbody_types.h" | #include "DNA_rigidbody_types.h" | ||||
| #include "DNA_screen_types.h" | #include "DNA_screen_types.h" | ||||
| #include "DNA_shader_fx_types.h" | #include "DNA_shader_fx_types.h" | ||||
| #include "DNA_space_types.h" | #include "DNA_space_types.h" | ||||
| #include "DNA_tracking_types.h" | #include "DNA_tracking_types.h" | ||||
| #include "DNA_workspace_types.h" | #include "DNA_workspace_types.h" | ||||
| #include "BKE_animsys.h" | #include "BKE_animsys.h" | ||||
| #include "BKE_armature.h" | |||||
| #include "BKE_collection.h" | #include "BKE_collection.h" | ||||
| #include "BKE_colortools.h" | #include "BKE_colortools.h" | ||||
| #include "BKE_fcurve.h" | #include "BKE_fcurve.h" | ||||
| #include "BKE_gpencil.h" | #include "BKE_gpencil.h" | ||||
| #include "BKE_lib_id.h" | #include "BKE_lib_id.h" | ||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "BKE_mesh.h" | #include "BKE_mesh.h" | ||||
| #include "BKE_multires.h" | #include "BKE_multires.h" | ||||
| ▲ Show 20 Lines • Show All 407 Lines • ▼ Show 20 Lines | void do_versions_after_linking_290(Main *bmain, ReportList *UNUSED(reports)) | ||||
| * \note Be sure to check when bumping the version: | * \note Be sure to check when bumping the version: | ||||
| * - #blo_do_versions_290 in this file. | * - #blo_do_versions_290 in this file. | ||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | * - "versioning_userdef.c", #blo_do_versions_userdef | ||||
| * - "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. */ | ||||
| /* Systematically rebuild posebones to ensure consistent ordering matching the one of bones in | |||||
| * Armature obdata. */ | |||||
| LISTBASE_FOREACH (Object *, ob, &bmain->objects) { | |||||
| if (ob->type == OB_ARMATURE) { | |||||
| BKE_pose_rebuild(bmain, ob, ob->data, true); | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| static void panels_remove_x_closed_flag_recursive(Panel *panel) | static void panels_remove_x_closed_flag_recursive(Panel *panel) | ||||
| { | { | ||||
| const bool was_closed_x = panel->flag & PNL_UNUSED_1; | const bool was_closed_x = panel->flag & PNL_UNUSED_1; | ||||
| const bool was_closed_y = panel->flag & PNL_CLOSED; /* That value was the Y closed flag. */ | const bool was_closed_y = panel->flag & PNL_CLOSED; /* That value was the Y closed flag. */ | ||||
| ▲ Show 20 Lines • Show All 701 Lines • Show Last 20 Lines | |||||