[Bf-blender-cvs] [05588f909a6] blender2.8: Fix crash flipping region without active area

Julian Eisel noreply at git.blender.org
Sun Oct 28 22:56:54 CET 2018


Commit: 05588f909a6e54233778268292e22eb40f0c3bce
Author: Julian Eisel
Date:   Sun Oct 28 22:55:21 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB05588f909a6e54233778268292e22eb40f0c3bce

Fix crash flipping region without active area

Would happen when cursor is in-between editors for example.

===================================================================

M	source/blender/editors/screen/screen_ops.c

===================================================================

diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c
index 150e1b1f5a5..44c2d3191e6 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -3595,7 +3595,7 @@ static bool region_flip_poll(bContext *C)
 	ScrArea *area = CTX_wm_area(C);
 
 	/* don't flip anything around in topbar */
-	if (area->spacetype == SPACE_TOPBAR) {
+	if (area && area->spacetype == SPACE_TOPBAR) {
 		CTX_wm_operator_poll_msg_set(C, "Flipping regions in the Top-bar is not allowed");
 		return 0;
 	}



More information about the Bf-blender-cvs mailing list