diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-06-24 11:23:31 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-06-24 11:23:31 +0300 |
commit | e08c9324823b24168cdf278c5c9b7ec519335112 (patch) | |
tree | a3c95f37303f729b1be7b0f05d63bb6f8f3b9d63 /source/blender/blenkernel/BKE_screen.h | |
parent | 3323cd9c9aa07cfc131b295977cd921fe7c547f0 (diff) |
Fix T98925: Editor panels are broken
Commit 277fa2f441f4 added channels region to unintended editors if sequencer was
used in area. This caused issues with some editors having 2 tool regions and
non functioning side panel.
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D15253
Diffstat (limited to 'source/blender/blenkernel/BKE_screen.h')
-rw-r--r-- | source/blender/blenkernel/BKE_screen.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_screen.h b/source/blender/blenkernel/BKE_screen.h index 4dda21d99b8..3922bfb6c0d 100644 --- a/source/blender/blenkernel/BKE_screen.h +++ b/source/blender/blenkernel/BKE_screen.h @@ -440,6 +440,14 @@ void BKE_region_callback_free_gizmomap_set(void (*callback)(struct wmGizmoMap *) void BKE_region_callback_refresh_tag_gizmomap_set(void (*callback)(struct wmGizmoMap *)); /** + * Find a region of type \a region_type in provided \a regionbase. + * + * \note this is useful for versioning where either the #Area or #SpaceLink regionbase are typical + * inputs + */ +struct ARegion *BKE_region_find_in_listbase_by_type(const struct ListBase *regionbase, + const int region_type); +/** * Find a region of type \a region_type in the currently active space of \a area. * * \note This does _not_ work if the region to look up is not in the active space. |