diff options
Diffstat (limited to 'source/blender/editors/space_graph/graph_buttons.c')
-rw-r--r-- | source/blender/editors/space_graph/graph_buttons.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/space_graph/graph_buttons.c b/source/blender/editors/space_graph/graph_buttons.c index 8e471ceca95..0e9922e82a3 100644 --- a/source/blender/editors/space_graph/graph_buttons.c +++ b/source/blender/editors/space_graph/graph_buttons.c @@ -355,7 +355,12 @@ static void graph_panel_key_properties(const bContext *C, Panel *pa) /* interpolation */ col = uiLayoutColumn(layout, false); - uiItemR(col, &bezt_ptr, "interpolation", 0, NULL, ICON_NONE); + if (fcu->flag & FCURVE_DISCRETE_VALUES) { + uiItemL(col, IFACE_("Interpolation: Enums/Booleans cannot be interpolated"), ICON_NONE); + } + else { + uiItemR(col, &bezt_ptr, "interpolation", 0, NULL, ICON_NONE); + } /* easing type */ if (bezt->ipo > BEZT_IPO_BEZ) |