[Bf-blender-cvs] [ca8f787349d] blender2.8: Fix T55298: Failing assert when splitting areas vertically

Severin noreply at git.blender.org
Thu Jun 28 19:51:49 CEST 2018


Commit: ca8f787349dcdf5f58f5fb950f14c1247d1bbcbf
Author: Severin
Date:   Thu Jun 28 19:49:00 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBca8f787349dcdf5f58f5fb950f14c1247d1bbcbf

Fix T55298: Failing assert when splitting areas vertically

There are more related glitches for which I have fixes. Will test them some more
and push in a followup commit.

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

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

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

diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c
index c067e5a452d..e1c4962a97b 100644
--- a/source/blender/editors/screen/screen_edit.c
+++ b/source/blender/editors/screen/screen_edit.c
@@ -216,7 +216,7 @@ static short testsplitpoint(ScrArea *sa, char dir, float fac)
 {
 	short x, y;
 	const short area_min_x = AREAMINX;
-	const short area_min_y = ED_area_headersize();
+	const short area_min_y = ED_area_headersize() + 1;
 
 	// area big enough?
 	if (dir == 'v' && (sa->v4->vec.x - sa->v1->vec.x <= 2 * area_min_x)) return 0;



More information about the Bf-blender-cvs mailing list