[Bf-blender-cvs] [492b5d0bc33] blender2.8: Minor code style corrections

Julian Eisel noreply at git.blender.org
Thu Jul 27 12:28:36 CEST 2017


Commit: 492b5d0bc3345be1b14bc25fd68f62e8d8af8c79
Author: Julian Eisel
Date:   Thu Jul 27 11:44:51 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB492b5d0bc3345be1b14bc25fd68f62e8d8af8c79

Minor code style corrections

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

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 e17592a0369..437fe21a762 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -2231,8 +2231,9 @@ static void ui_litem_layout_column(uiLayout *litem, bool is_box)
 		if (item->next && (!is_box || item != litem->items.first))
 			y -= litem->space;
 
-		if (is_box)
+		if (is_box) {
 			item->flag |= UI_ITEM_BOX_ITEM;
+		}
 	}
 
 	litem->h = litem->y - y;
@@ -3194,11 +3195,13 @@ static void ui_item_layout(uiItem *item)
 		}
 
 		for (subitem = litem->items.first; subitem; subitem = subitem->next) {
-			if (item->flag & UI_ITEM_BOX_ITEM)
+			if (item->flag & UI_ITEM_BOX_ITEM) {
 				subitem->flag |= UI_ITEM_BOX_ITEM;
+			}
 			ui_item_layout(subitem);
 		}
-	} else {
+	}
+	else {
 		if (item->flag & UI_ITEM_BOX_ITEM) {
 			uiButtonItem *bitem = (uiButtonItem *)item;
 			bitem->but->drawflag |= UI_BUT_BOX_ITEM;




More information about the Bf-blender-cvs mailing list