Fix T70522: Sidebars in Clip Editor work incorrectly in Dopesheet mode

Actually, in Dopesheet mode, the regions shouldn't be toggle-able at
all. For the user they should appear to not exist.
Previously the Movie Clip Editor archieved this by setting the region
alignments to NONE, which this restores.

Introduced in 6aef124e7d.
This commit is contained in:
Julian Eisel 2019-10-08 10:29:27 +02:00
parent 7f52eb287c
commit 95749f5d54
Notes: blender-bot 2023-02-14 01:21:16 +01:00
Referenced by issue #70522, Clip editor: toolbar and sidebar allowed to open in graph and dopesheet mode
1 changed files with 1 additions and 1 deletions

View File

@ -589,7 +589,7 @@ static void rna_Space_bool_from_region_flag_set_by_type(PointerRNA *ptr,
{
ScrArea *sa = rna_area_from_space(ptr);
ARegion *ar = BKE_area_find_region_type(sa, region_type);
if (ar) {
if (ar && (ar->alignment != RGN_ALIGN_NONE)) {
SET_FLAG_FROM_TEST(ar->flag, value, region_flag);
}
ED_region_tag_redraw(ar);