From 0bf0aa6625cdf5ed2ab57e11cfa52ac60e95c965 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sun, 14 Jun 2015 01:21:02 +1200 Subject: Fix: Don't show "Clear Keyframes" option in RMB menu for NLA Strip properties Since these FCurves for these properties cannot be deleted, this operator is useless in this case. --- source/blender/editors/interface/interface_handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/interface') diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 59a06b3113c..c911e6c3558 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -6532,7 +6532,7 @@ static bool ui_but_menu(bContext *C, uiBut *but) } } - if (but->flag & UI_BUT_ANIMATED) { + if ((but->flag & UI_BUT_ANIMATED) && (but->rnapoin.type != &RNA_NlaStrip)) { if (is_array_component) { uiItemBooleanO(layout, CTX_IFACE_(BLF_I18NCONTEXT_OPERATOR_DEFAULT, "Clear Keyframes"), ICON_NONE, "ANIM_OT_keyframe_clear_button", "all", 1); -- cgit v1.2.3