Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2015-10-08 15:39:20 +0300
committerJoshua Leung <aligorith@gmail.com>2015-10-26 10:18:07 +0300
commitebe3923137cadefafeba75f5a11f79f1d160c483 (patch)
tree83aab298daf2f1e7e55360c17cdf2290b9a76aa9 /source/blender/editors/space_graph/graph_buttons.c
parentc3cec828e82de70fe92eeb7c52869d24466d4109 (diff)
Graph Editor: Disable interpolation setting for enum/boolean FCurves, as no interpolation is performed on those
Diffstat (limited to 'source/blender/editors/space_graph/graph_buttons.c')
-rw-r--r--source/blender/editors/space_graph/graph_buttons.c7
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)