diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-06-13 16:21:02 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-06-13 16:21:48 +0300 |
commit | 0bf0aa6625cdf5ed2ab57e11cfa52ac60e95c965 (patch) | |
tree | 7459a9caa826c09f8dade8dcf7057e5a749ede3d /source/blender/editors | |
parent | 0b51e7d99170aa6bdb2b9a3884122a350dc3ebae (diff) |
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.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |