diff options
author | Hans Goudey <h.goudey@me.com> | 2020-10-19 05:45:03 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-10-19 05:46:27 +0300 |
commit | a17de3ed5fc6b07d2ada6fa7104b074353258d43 (patch) | |
tree | ba1a1a8ee74c2993eb5d4233a3c24d939c2cbd37 /source/blender/editors/space_nla | |
parent | dd9e2cd6fa58d92e2cdc5d988b581063cd226717 (diff) |
Properly gray out modifiers when FCurve has them turned offfcurve-modifier-panels
Diffstat (limited to 'source/blender/editors/space_nla')
-rw-r--r-- | source/blender/editors/space_nla/nla_buttons.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/space_nla/nla_buttons.c b/source/blender/editors/space_nla/nla_buttons.c index dcdc36141df..9ab2898b9bd 100644 --- a/source/blender/editors/space_nla/nla_buttons.c +++ b/source/blender/editors/space_nla/nla_buttons.c @@ -185,7 +185,7 @@ bool nla_panel_context(const bContext *C, return (found != 0); } -ListBase *ANIM_nla_context_fmodifiers(const bContext *C) +NlaStrip *ANIM_nla_context_strip(const bContext *C) { PointerRNA strip_ptr; if (!nla_panel_context(C, NULL, NULL, &strip_ptr)) { @@ -193,7 +193,7 @@ ListBase *ANIM_nla_context_fmodifiers(const bContext *C) } NlaStrip *strip = strip_ptr.data; - return &strip->modifiers; + return strip; } #if 0 @@ -679,7 +679,8 @@ void nla_buttons_register(ARegionType *art) const char *modifier_panel_prefix = NLA_FMODIFIER_PANEL_PREFIX; ANIM_fmodifiers_generator_panel_register(art, modifier_panel_prefix, nla_strip_eval_panel_poll); - ANIM_fmodifiers_generator_panel_register(art, modifier_panel_prefix, nla_strip_eval_panel_poll); + ANIM_fmodifiers_fn_generator_panel_register( + art, modifier_panel_prefix, nla_strip_eval_panel_poll); ANIM_fmodifiers_noise_panel_register(art, modifier_panel_prefix, nla_strip_eval_panel_poll); ANIM_fmodifiers_envelope_panel_register(art, modifier_panel_prefix, nla_strip_eval_panel_poll); ANIM_fmodifers_limits_panel_register(art, modifier_panel_prefix, nla_strip_eval_panel_poll); |