[Bf-blender-cvs] [d9abb0eaae2] blender2.8: Explicitly disable separator spacer in popover and pie menus

Dalai Felinto noreply at git.blender.org
Thu Nov 15 19:59:56 CET 2018


Commit: d9abb0eaae2d133c7a1bd29ce352a39de808b918
Author: Dalai Felinto
Date:   Thu Nov 15 16:44:42 2018 -0200
Branches: blender2.8
https://developer.blender.org/rBd9abb0eaae2d133c7a1bd29ce352a39de808b918

Explicitly disable separator spacer in popover and pie menus

It is doable to get it to work, you just need to process it line
by line though, and get the right width of each one.

Disabling it for now since it is not implemented anyways.

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

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 76296b12898..424f5004bf0 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -2442,10 +2442,10 @@ void uiItemS(uiLayout *layout)
 void uiItemSpacer(uiLayout *layout)
 {
 	uiBlock *block = layout->root->block;
-	bool is_menu = ui_block_is_menu(block);
+	const bool is_popup = ui_block_is_popup_any(block);
 
-	if (is_menu) {
-		printf("Error: separator_spacer() not supported in menus.\n");
+	if (is_popup) {
+		printf("Error: separator_spacer() not supported in popups.\n");
 		return;
 	}



More information about the Bf-blender-cvs mailing list