diff --git a/source/blender/editors/space_nla/nla_buttons.c b/source/blender/editors/space_nla/nla_buttons.c index 5e4389279eb..0e9560727df 100644 --- a/source/blender/editors/space_nla/nla_buttons.c +++ b/source/blender/editors/space_nla/nla_buttons.c @@ -317,16 +317,22 @@ static void nla_panel_animdata(const bContext *C, Panel *panel) false, NULL); + PointerRNA act_ptr = RNA_pointer_get(&adt_ptr, "action"); + const bool has_act = !RNA_pointer_is_null(&act_ptr); + /* extrapolation */ row = uiLayoutRow(layout, true); + uiLayoutSetActive(row, has_act); uiItemR(row, &adt_ptr, "action_extrapolation", 0, IFACE_("Extrapolation"), ICON_NONE); /* blending */ row = uiLayoutRow(layout, true); + uiLayoutSetActive(row, has_act); uiItemR(row, &adt_ptr, "action_blend_type", 0, IFACE_("Blending"), ICON_NONE); /* influence */ row = uiLayoutRow(layout, true); + uiLayoutSetActive(row, has_act); uiItemR(row, &adt_ptr, "action_influence", 0, IFACE_("Influence"), ICON_NONE); }