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
parent 0b51e7d991
commit 0bf0aa6625
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);