[Bf-blender-cvs] [b6606ff] temp_pie_max_items_fix: Minor correction, added comment

Julian Eisel noreply at git.blender.org
Mon Feb 15 17:04:28 CET 2016


Commit: b6606ff72ee8d8df0bdced265528745d9334e5a5
Author: Julian Eisel
Date:   Mon Feb 15 15:39:08 2016 +0100
Branches: temp_pie_max_items_fix
https://developer.blender.org/rBb6606ff72ee8d8df0bdced265528745d9334e5a5

Minor correction, added comment

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

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 5e83a65..90adcc7 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -938,6 +938,7 @@ void uiItemsFullEnumO_array(
 			/* only create a new pie level if there's a visible item for it */
 			if (item->name) {
 				ui_pie_menu_level_create(block, ot, propname, properties, item_array, totitem, context, flag);
+				/* break since rest of items is handled in new pie level */
 				break;
 			}
 			continue;
@@ -965,7 +966,7 @@ void uiItemsFullEnumO_array(
 				uiBut *but;
 
 				if (item != item_array && !radial) {
-					target = uiLayoutColumn(split, target->align);
+					target = uiLayoutColumn(split, layout->align);
 
 					/* inconsistent, but menus with labels do not look good flipped */
 					block->flag |= UI_BLOCK_NO_FLIP;




More information about the Bf-blender-cvs mailing list