[Bf-blender-cvs] [21f4c77] master: Alternative presentation for interpolation indicator for discrete properties

Joshua Leung noreply at git.blender.org
Mon Oct 26 08:19:34 CET 2015


Commit: 21f4c77a763d4a3fde8a4adfe7a5ea94dbc99fa9
Author: Joshua Leung
Date:   Fri Oct 9 01:48:16 2015 +1300
Branches: master
https://developer.blender.org/rB21f4c77a763d4a3fde8a4adfe7a5ea94dbc99fa9

Alternative presentation for interpolation indicator for discrete properties

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

M	source/blender/editors/space_graph/graph_buttons.c

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

diff --git a/source/blender/editors/space_graph/graph_buttons.c b/source/blender/editors/space_graph/graph_buttons.c
index 0e9922e..713f101 100644
--- a/source/blender/editors/space_graph/graph_buttons.c
+++ b/source/blender/editors/space_graph/graph_buttons.c
@@ -356,7 +356,9 @@ static void graph_panel_key_properties(const bContext *C, Panel *pa)
 		/* interpolation */
 		col = uiLayoutColumn(layout, false);
 		if (fcu->flag & FCURVE_DISCRETE_VALUES) {
-			uiItemL(col, IFACE_("Interpolation: Enums/Booleans cannot be interpolated"), ICON_NONE);
+			uiLayout *split = uiLayoutSplit(col, 0.33f, true);
+			uiItemL(split, IFACE_("Interpolation:"), ICON_NONE);
+			uiItemL(split, IFACE_("None for Enum/Boolean"), ICON_IPO_CONSTANT);
 		}
 		else {
 			uiItemR(col, &bezt_ptr, "interpolation", 0, NULL, ICON_NONE);




More information about the Bf-blender-cvs mailing list