Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_290.c
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| #include "DNA_modifier_types.h" | #include "DNA_modifier_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_particle_types.h" | #include "DNA_particle_types.h" | ||||
| #include "DNA_pointcloud_types.h" | #include "DNA_pointcloud_types.h" | ||||
| #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_text_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_armature.h" | ||||
| #include "BKE_attribute.h" | #include "BKE_attribute.h" | ||||
| #include "BKE_collection.h" | #include "BKE_collection.h" | ||||
| #include "BKE_colortools.h" | #include "BKE_colortools.h" | ||||
| ▲ Show 20 Lines • Show All 634 Lines • ▼ Show 20 Lines | void do_versions_after_linking_290(Main *bmain, ReportList *UNUSED(reports)) | ||||
| * - #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. */ | ||||
| /* Set zero user text objects to have a fake user. */ | |||||
| LISTBASE_FOREACH (Text *, text, &bmain->texts) { | |||||
| if (text->id.us == 0) { | |||||
| id_fake_user_set(&text->id); | |||||
| } | |||||
| } | |||||
mont29: This requires a sub-version bump, otherwise it would re-enable fake user even on texts where… | |||||
| } | } | ||||
| } | } | ||||
| 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 992 Lines • Show Last 20 Lines | |||||
This requires a sub-version bump, otherwise it would re-enable fake user even on texts where user purposely disabled it.