Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.c
| Show First 20 Lines • Show All 869 Lines • ▼ Show 20 Lines | void do_versions_after_linking_300(Main *bmain, ReportList *UNUSED(reports)) | ||||
| * - #blo_do_versions_300 in this file. | * - #blo_do_versions_300 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. */ | ||||
| { | |||||
| /* In the Dope Sheet, for every mode other than Timeline, open the Properties panel. */ | |||||
| LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) { | |||||
| LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { | |||||
| LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) { | |||||
| if (sl->spacetype != SPACE_ACTION) { | |||||
| continue; | |||||
| } | |||||
| /* Skip the timeline, it shouldn't get its Properties panel opened. */ | |||||
| SpaceAction *saction = (SpaceAction *)sl; | |||||
| if (saction->mode == SACTCONT_TIMELINE) { | |||||
| continue; | |||||
| } | |||||
| const bool is_first_space = sl == area->spacedata.first; | |||||
| ListBase *regionbase = is_first_space ? &area->regionbase : &sl->regionbase; | |||||
| ARegion *region = BKE_region_find_in_listbase_by_type(regionbase, RGN_TYPE_UI); | |||||
| if (region == NULL) { | |||||
| continue; | |||||
| } | |||||
| region->flag &= ~RGN_FLAG_HIDDEN; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| static void version_switch_node_input_prefix(Main *bmain) | static void version_switch_node_input_prefix(Main *bmain) | ||||
| { | { | ||||
| FOREACH_NODETREE_BEGIN (bmain, ntree, id) { | FOREACH_NODETREE_BEGIN (bmain, ntree, id) { | ||||
| if (ntree->type == NTREE_GEOMETRY) { | if (ntree->type == NTREE_GEOMETRY) { | ||||
| LISTBASE_FOREACH (bNode *, node, &ntree->nodes) { | LISTBASE_FOREACH (bNode *, node, &ntree->nodes) { | ||||
| ▲ Show 20 Lines • Show All 2,403 Lines • Show Last 20 Lines | |||||