diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-12 00:49:40 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-12 00:49:40 +0300 |
commit | fd9afa74316fc276f2dfe70102db7d305b3bec22 (patch) | |
tree | 4828b126cc0ac34a99dc2e4d013baf1f57642a63 /source/blender/editors/animation/anim_channels_edit.c | |
parent | 0d488e00c8e10ab55d38bc8bc799a12a117d7402 (diff) |
rename anim.channels_revive_fcurves --> anim.channels_fcurves_enable
better matches existing VIEW3D_OT_enable_manipulator & ANIM_OT_channels_setting_enable
also fixed warning.
Diffstat (limited to 'source/blender/editors/animation/anim_channels_edit.c')
-rw-r--r-- | source/blender/editors/animation/anim_channels_edit.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c index 58b1ebda55a..739940ccdad 100644 --- a/source/blender/editors/animation/anim_channels_edit.c +++ b/source/blender/editors/animation/anim_channels_edit.c @@ -1598,7 +1598,7 @@ void ANIM_OT_channels_collapse (wmOperatorType *ot) /* ******************* Reenable Disabled Operator ******************* */ -static int animchannels_revive_poll (bContext *C) +static int animchannels_enable_poll (bContext *C) { ScrArea *sa= CTX_wm_area(C); @@ -1614,7 +1614,7 @@ static int animchannels_revive_poll (bContext *C) return 1; } -static int animchannels_revive_exec (bContext *C, wmOperator *op) +static int animchannels_enable_exec (bContext *C, wmOperator *UNUSED(op)) { bAnimContext ac; @@ -1645,16 +1645,16 @@ static int animchannels_revive_exec (bContext *C, wmOperator *op) return OPERATOR_FINISHED; } -void ANIM_OT_channels_revive_fcurves (wmOperatorType *ot) +void ANIM_OT_channels_fcurves_enable (wmOperatorType *ot) { /* identifiers */ ot->name= "Revive Disabled F-Curves"; - ot->idname= "ANIM_OT_channels_revive_fcurves"; + ot->idname= "ANIM_OT_channels_fcurves_enable"; ot->description= "Clears 'disabled' tag from all F-Curves to get broken F-Curves working again"; /* api callbacks */ - ot->exec= animchannels_revive_exec; - ot->poll= animchannels_revive_poll; + ot->exec= animchannels_enable_exec; + ot->poll= animchannels_enable_poll; /* flags */ ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; @@ -2180,7 +2180,7 @@ void ED_operatortypes_animchannels(void) WM_operatortype_append(ANIM_OT_channels_visibility_toggle); WM_operatortype_append(ANIM_OT_channels_visibility_set); - WM_operatortype_append(ANIM_OT_channels_revive_fcurves); + WM_operatortype_append(ANIM_OT_channels_fcurves_enable); } // TODO: check on a poll callback for this, to get hotkeys into menus |