From fd9afa74316fc276f2dfe70102db7d305b3bec22 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 11 Nov 2010 21:49:40 +0000 Subject: rename anim.channels_revive_fcurves --> anim.channels_fcurves_enable better matches existing VIEW3D_OT_enable_manipulator & ANIM_OT_channels_setting_enable also fixed warning. --- source/blender/editors/animation/anim_channels_edit.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source/blender/editors/animation/anim_channels_edit.c') 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 -- cgit v1.2.3