diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-02-10 12:39:55 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-02-10 12:39:55 +0300 |
commit | fc3b29b637635092858c2671a0913ebe6a5343c0 (patch) | |
tree | 7e0938e7fe38cef27fbf415a3d4d281630b1ae8b | |
parent | 264c8c21623c3b011494e169f0571c410331e553 (diff) |
Small consistency fixups
-rw-r--r-- | release/scripts/ui/space_dopesheet.py | 2 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_channels_edit.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/ui/space_dopesheet.py b/release/scripts/ui/space_dopesheet.py index eda4c80bb98..9d6c9830675 100644 --- a/release/scripts/ui/space_dopesheet.py +++ b/release/scripts/ui/space_dopesheet.py @@ -243,6 +243,7 @@ class DOPESHEET_MT_channel(bpy.types.Menu): layout.separator() layout.operator("anim.channels_editable_toggle") + layout.operator_menu_enum("action.extrapolation_type", "type", text="Extrapolation Mode") layout.separator() layout.operator("anim.channels_expand") @@ -278,7 +279,6 @@ class DOPESHEET_MT_key(bpy.types.Menu): layout.operator_menu_enum("action.keyframe_type", "type", text="Keyframe Type") layout.operator_menu_enum("action.handle_type", "type", text="Handle Type") layout.operator_menu_enum("action.interpolation_type", "type", text="Interpolation Mode") - layout.operator_menu_enum("action.extrapolation_type", "type", text="Extrapolation Mode") layout.separator() layout.operator("action.clean") diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c index 0caf732fe2d..31209459bde 100644 --- a/source/blender/editors/animation/anim_channels_edit.c +++ b/source/blender/editors/animation/anim_channels_edit.c @@ -1052,7 +1052,7 @@ static int animchannels_rearrange_exec(bContext *C, wmOperator *op) // FIXME: actions should only be considered once! if (adt->action) rearrange_action_channels(&ac, adt->action, mode); - else + else if (G.f & G_DEBUG) printf("animdata has no action\n"); break; } @@ -1082,7 +1082,7 @@ void ANIM_OT_channels_move (wmOperatorType *ot) ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; /* props */ - RNA_def_enum(ot->srna, "direction", prop_animchannel_rearrange_types, REARRANGE_ANIMCHAN_DOWN, "Direction", ""); + ot->prop= RNA_def_enum(ot->srna, "direction", prop_animchannel_rearrange_types, REARRANGE_ANIMCHAN_DOWN, "Direction", ""); } /* ******************** Delete Channel Operator *********************** */ |