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:
parent
1c40dfc43c
commit
b79c898bd6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue