rename anim.channels_revive_fcurves --> anim.channels_fcurves_enable

better matches existing VIEW3D_OT_enable_manipulator & ANIM_OT_channels_setting_enable
also fixed warning.
This commit is contained in:
Campbell Barton 2010-11-11 21:49:40 +00:00
parent 0d488e00c8
commit fd9afa7431
3 changed files with 9 additions and 9 deletions

@ -203,7 +203,7 @@ class DOPESHEET_MT_channel(bpy.types.Menu):
layout.operator_menu_enum("anim.channels_move", "direction", text="Move...") layout.operator_menu_enum("anim.channels_move", "direction", text="Move...")
layout.separator() layout.separator()
layout.operator("anim.channels_revive_fcurves") layout.operator("anim.channels_fcurves_enable")
class DOPESHEET_MT_key(bpy.types.Menu): class DOPESHEET_MT_key(bpy.types.Menu):

@ -161,7 +161,7 @@ class GRAPH_MT_channel(bpy.types.Menu):
layout.operator_menu_enum("anim.channels_move", "direction", text="Move...") layout.operator_menu_enum("anim.channels_move", "direction", text="Move...")
layout.separator() layout.separator()
layout.operator("anim.channels_revive_fcurves") layout.operator("anim.channels_fcurves_enable")
class GRAPH_MT_key(bpy.types.Menu): class GRAPH_MT_key(bpy.types.Menu):

@ -1598,7 +1598,7 @@ void ANIM_OT_channels_collapse (wmOperatorType *ot)
/* ******************* Reenable Disabled Operator ******************* */ /* ******************* Reenable Disabled Operator ******************* */
static int animchannels_revive_poll (bContext *C) static int animchannels_enable_poll (bContext *C)
{ {
ScrArea *sa= CTX_wm_area(C); ScrArea *sa= CTX_wm_area(C);
@ -1614,7 +1614,7 @@ static int animchannels_revive_poll (bContext *C)
return 1; return 1;
} }
static int animchannels_revive_exec (bContext *C, wmOperator *op) static int animchannels_enable_exec (bContext *C, wmOperator *UNUSED(op))
{ {
bAnimContext ac; bAnimContext ac;
@ -1645,16 +1645,16 @@ static int animchannels_revive_exec (bContext *C, wmOperator *op)
return OPERATOR_FINISHED; return OPERATOR_FINISHED;
} }
void ANIM_OT_channels_revive_fcurves (wmOperatorType *ot) void ANIM_OT_channels_fcurves_enable (wmOperatorType *ot)
{ {
/* identifiers */ /* identifiers */
ot->name= "Revive Disabled F-Curves"; 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"; ot->description= "Clears 'disabled' tag from all F-Curves to get broken F-Curves working again";
/* api callbacks */ /* api callbacks */
ot->exec= animchannels_revive_exec; ot->exec= animchannels_enable_exec;
ot->poll= animchannels_revive_poll; ot->poll= animchannels_enable_poll;
/* flags */ /* flags */
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; 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_toggle);
WM_operatortype_append(ANIM_OT_channels_visibility_set); 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 // TODO: check on a poll callback for this, to get hotkeys into menus