[Bf-blender-cvs] [f842ffb1077] master: Fix crash with some hidden regions after previous commit
Julian Eisel
noreply at git.blender.org
Wed Jan 15 15:26:55 CET 2020
Commit: f842ffb1077ef9a5c2f296cf892cb190bf803e1e
Author: Julian Eisel
Date: Wed Jan 15 15:19:35 2020 +0100
Branches: master
https://developer.blender.org/rBf842ffb1077ef9a5c2f296cf892cb190bf803e1e
Fix crash with some hidden regions after previous commit
E.g. in the default "Animation" workspace this would crash.
===================================================================
M source/blender/editors/screen/area.c
===================================================================
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 */
More information about the Bf-blender-cvs
mailing list