Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2019-10-08 11:29:27 +0300
committerJulian Eisel <eiseljulian@gmail.com>2019-10-08 11:33:48 +0300
commit95749f5d548c9cd304b2f8399c791c98e431a19e (patch)
treec7ebfd83b80839c66ce7e657f171d7949fdc3f65 /source
parent7f52eb287cf38d8f53ff37b9fcdcabfc1ed31802 (diff)
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 6aef124e7d28.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_space.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 52aca9bdea5..01532d8568b 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -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);