[Bf-blender-cvs] [82b8fd8eafd] blender2.8: UI: don't show XYZ text w/ direction buttons

Campbell Barton noreply at git.blender.org
Fri Jun 1 14:11:34 CEST 2018


Commit: 82b8fd8eafdc524e8d97f8cf43bf4ea4b97f6aab
Author: Campbell Barton
Date:   Fri Jun 1 14:10:43 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB82b8fd8eafdc524e8d97f8cf43bf4ea4b97f6aab

UI: don't show XYZ text w/ direction buttons

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

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 bfd37db4bef..ea40c8e8fd8 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -1533,7 +1533,7 @@ void uiItemFullR(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index
 			layout_sub->space = 0;
 
 			if ((index == RNA_NO_INDEX && is_array) &&
-			    ((ELEM(subtype, PROP_COLOR, PROP_COLOR_GAMMA) && !expand) == 0))
+			    ((!expand && ELEM(subtype, PROP_COLOR, PROP_COLOR_GAMMA, PROP_DIRECTION)) == 0))
 			{
 				char name_with_suffix[UI_MAX_DRAW_STR + 2];
 				char str[2] = {'\0'};



More information about the Bf-blender-cvs mailing list