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.
This commit is contained in:
Joshua Leung 2015-06-14 01:21:02 +12:00 committed by Sergey Sharybin
parent 1c40dfc43c
commit b79c898bd6
1 changed files with 1 additions and 1 deletions

View File

@ -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);