[Bf-blender-cvs] [070830c62d3] blender2.8: Fix separator element for headers with multiple directions

Dalai Felinto noreply at git.blender.org
Mon Jun 11 14:54:28 CEST 2018


Commit: 070830c62d388b111a1e7996fb422b9a69d6aab0
Author: Dalai Felinto
Date:   Mon Jun 11 14:54:04 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB070830c62d388b111a1e7996fb422b9a69d6aab0

Fix separator element for headers with multiple directions

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

M	source/blender/editors/interface/interface_layout.c

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

diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index f031017c213..9888c6d65cc 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -2227,8 +2227,8 @@ void uiItemSpacer(uiLayout *layout)
 		return;
 	}
 
-	if (block->direction != UI_DIR_RIGHT) {
-		printf("Error: separator_spacer() only supported in horizontal blocks\n.");
+	if (block->direction & UI_DIR_RIGHT) {
+		printf("Error: separator_spacer() only supported in horizontal blocks.\n");
 		return;
 	}



More information about the Bf-blender-cvs mailing list