[Bf-blender-cvs] [25c1c0455ac] blender2.8: Fix T56660: Use horizontal enums w/ image template

Campbell Barton noreply at git.blender.org
Tue Sep 4 06:02:42 CEST 2018


Commit: 25c1c0455ac48396c7ae6f14ae188761d676ca08
Author: Campbell Barton
Date:   Tue Sep 4 14:09:45 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB25c1c0455ac48396c7ae6f14ae188761d676ca08

Fix T56660: Use horizontal enums w/ image template

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

M	source/blender/editors/space_image/image_buttons.c

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

diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c
index 9dd84df237d..ee1f195abb2 100644
--- a/source/blender/editors/space_image/image_buttons.c
+++ b/source/blender/editors/space_image/image_buttons.c
@@ -1063,7 +1063,7 @@ void uiTemplateImageSettings(uiLayout *layout, PointerRNA *imfptr, bool color_ma
 	uiLayoutSetPropDecorate(col, false);
 
 	uiItemR(col, imfptr, "file_format", 0, NULL, ICON_NONE);
-	uiItemR(col, imfptr, "color_mode", UI_ITEM_R_EXPAND, IFACE_("Color"), ICON_NONE);
+	uiItemR(uiLayoutRow(col, true), imfptr, "color_mode", UI_ITEM_R_EXPAND, IFACE_("Color"), ICON_NONE);
 
 	/* only display depth setting if multiple depths can be used */
 	if ((ELEM(depth_ok,
@@ -1075,7 +1075,7 @@ void uiTemplateImageSettings(uiLayout *layout, PointerRNA *imfptr, bool color_ma
 	          R_IMF_CHAN_DEPTH_24,
 	          R_IMF_CHAN_DEPTH_32)) == 0)
 	{
-		uiItemR(col, imfptr, "color_depth", UI_ITEM_R_EXPAND, NULL, ICON_NONE);
+		uiItemR(uiLayoutRow(col, true), imfptr, "color_depth", UI_ITEM_R_EXPAND, NULL, ICON_NONE);
 	}
 
 	if (BKE_imtype_supports_quality(imf->imtype)) {



More information about the Bf-blender-cvs mailing list