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
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2020-01-15 17:19:35 +0300
committerJulian Eisel <eiseljulian@gmail.com>2020-01-15 17:24:43 +0300
commitf842ffb1077ef9a5c2f296cf892cb190bf803e1e (patch)
tree3f8cd64548dd1c99816dc7357b650c02c1ec9d58 /source/blender/editors/screen
parent758361556b5b9afff506e4247345b739c0f8170c (diff)
Fix crash with some hidden regions after previous commit
E.g. in the default "Animation" workspace this would crash.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/area.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index a4318db0cb5..f4d9c353102 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -1497,9 +1497,11 @@ static void region_rect_recursive(
default:
/* prevent winrct to be valid */
ar->winrct.xmax = ar->winrct.xmin;
- BLI_rcti_sanitize(&ar->winrct);
break;
}
+
+ /* Size on one axis is now 0, the other axis may still be invalid (negative) though. */
+ BLI_rcti_sanitize(&ar->winrct);
}
/* restore prev-split exception */