diff options
Diffstat (limited to 'source/blender/editors/animation/keyframing.c')
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index e82f234d2b6..71e70536d15 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -317,9 +317,9 @@ int insert_vert_fcurve (FCurve *fcu, float x, float y, short flag) /* use default interpolation mode, with exceptions for int/discrete values */ beztr.ipo= U.ipo_new; - if(fcu->flag & FCURVE_DISCRETE_VALUES) + if (fcu->flag & FCURVE_DISCRETE_VALUES) beztr.ipo = BEZT_IPO_CONST; - else if(beztr.ipo == BEZT_IPO_BEZ && (fcu->flag & FCURVE_INT_VALUES)) + else if (beztr.ipo == BEZT_IPO_BEZ && (fcu->flag & FCURVE_INT_VALUES)) beztr.ipo = BEZT_IPO_LIN; /* add temp beztriple to keyframes */ @@ -573,7 +573,7 @@ static short visualkey_can_use (PointerRNA *ptr, PropertyRNA *prop) return 0; /* location or rotation identifiers only... */ - if(identifier == NULL) { + if (identifier == NULL) { printf("%s failed: NULL identifier\n", __func__); return 0; } @@ -1158,22 +1158,22 @@ void ANIM_OT_keyframe_insert (wmOperatorType *ot) PropertyRNA *prop; /* identifiers */ - ot->name= "Insert Keyframe"; - ot->idname= "ANIM_OT_keyframe_insert"; - ot->description= "Insert keyframes on the current frame for all properties in the specified Keying Set"; + ot->name = "Insert Keyframe"; + ot->idname = "ANIM_OT_keyframe_insert"; + ot->description = "Insert keyframes on the current frame for all properties in the specified Keying Set"; /* callbacks */ - ot->exec= insert_key_exec; - ot->poll= modify_key_op_poll; + ot->exec = insert_key_exec; + ot->poll = modify_key_op_poll; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* keyingset to use (dynamic enum) */ prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, "Keying Set", "The Keying Set to use"); RNA_def_enum_funcs(prop, ANIM_keying_sets_enum_itemf); RNA_def_property_flag(prop, PROP_HIDDEN); - ot->prop= prop; + ot->prop = prop; /* confirm whether a keyframe was added by showing a popup * - by default, this is enabled, since this operator is assumed to be called independently @@ -1219,23 +1219,23 @@ void ANIM_OT_keyframe_insert_menu (wmOperatorType *ot) PropertyRNA *prop; /* identifiers */ - ot->name= "Insert Keyframe Menu"; - ot->idname= "ANIM_OT_keyframe_insert_menu"; - ot->description= "Insert Keyframes for specified Keying Set, with menu of available Keying Sets if undefined"; + ot->name = "Insert Keyframe Menu"; + ot->idname = "ANIM_OT_keyframe_insert_menu"; + ot->description = "Insert Keyframes for specified Keying Set, with menu of available Keying Sets if undefined"; /* callbacks */ - ot->invoke= insert_key_menu_invoke; - ot->exec= insert_key_exec; - ot->poll= ED_operator_areaactive; + ot->invoke = insert_key_menu_invoke; + ot->exec = insert_key_exec; + ot->poll = ED_operator_areaactive; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* keyingset to use (dynamic enum) */ prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, "Keying Set", "The Keying Set to use"); RNA_def_enum_funcs(prop, ANIM_keying_sets_enum_itemf); RNA_def_property_flag(prop, PROP_HIDDEN); - ot->prop= prop; + ot->prop = prop; /* confirm whether a keyframe was added by showing a popup * - by default, this is disabled so that if a menu is shown, this doesn't come up too @@ -1314,22 +1314,22 @@ void ANIM_OT_keyframe_delete (wmOperatorType *ot) PropertyRNA *prop; /* identifiers */ - ot->name= "Delete Keying-Set Keyframe"; - ot->idname= "ANIM_OT_keyframe_delete"; - ot->description= "Delete keyframes on the current frame for all properties in the specified Keying Set"; + ot->name = "Delete Keying-Set Keyframe"; + ot->idname = "ANIM_OT_keyframe_delete"; + ot->description = "Delete keyframes on the current frame for all properties in the specified Keying Set"; /* callbacks */ - ot->exec= delete_key_exec; - ot->poll= modify_key_op_poll; + ot->exec = delete_key_exec; + ot->poll = modify_key_op_poll; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* keyingset to use (dynamic enum) */ prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, "Keying Set", "The Keying Set to use"); RNA_def_enum_funcs(prop, ANIM_keying_sets_enum_itemf); RNA_def_property_flag(prop, PROP_HIDDEN); - ot->prop= prop; + ot->prop = prop; /* confirm whether a keyframe was added by showing a popup * - by default, this is enabled, since this operator is assumed to be called independently @@ -1387,18 +1387,18 @@ static int delete_key_v3d_exec (bContext *C, wmOperator *op) void ANIM_OT_keyframe_delete_v3d (wmOperatorType *ot) { /* identifiers */ - ot->name= "Delete Keyframe"; - ot->description= "Remove keyframes on current frame for selected object"; - ot->idname= "ANIM_OT_keyframe_delete_v3d"; + ot->name = "Delete Keyframe"; + ot->description = "Remove keyframes on current frame for selected object"; + ot->idname = "ANIM_OT_keyframe_delete_v3d"; /* callbacks */ - ot->invoke= WM_operator_confirm; - ot->exec= delete_key_v3d_exec; + ot->invoke = WM_operator_confirm; + ot->exec = delete_key_v3d_exec; - ot->poll= ED_operator_areaactive; + ot->poll = ED_operator_areaactive; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } @@ -1429,7 +1429,7 @@ static int insert_key_button_exec (bContext *C, wmOperator *op) if (all) { length= RNA_property_array_length(&ptr, prop); - if(length) index= 0; + if (length) index= 0; else length= 1; } else @@ -1477,15 +1477,15 @@ static int insert_key_button_exec (bContext *C, wmOperator *op) void ANIM_OT_keyframe_insert_button (wmOperatorType *ot) { /* identifiers */ - ot->name= "Insert Keyframe (Buttons)"; - ot->idname= "ANIM_OT_keyframe_insert_button"; + ot->name = "Insert Keyframe (Buttons)"; + ot->idname = "ANIM_OT_keyframe_insert_button"; /* callbacks */ - ot->exec= insert_key_button_exec; - ot->poll= modify_key_op_poll; + ot->exec = insert_key_button_exec; + ot->poll = modify_key_op_poll; /* flags */ - ot->flag= OPTYPE_UNDO; + ot->flag = OPTYPE_UNDO; /* properties */ RNA_def_boolean(ot->srna, "all", 1, "All", "Insert a keyframe for all element of the array"); @@ -1549,15 +1549,15 @@ static int delete_key_button_exec (bContext *C, wmOperator *op) void ANIM_OT_keyframe_delete_button (wmOperatorType *ot) { /* identifiers */ - ot->name= "Delete Keyframe (Buttons)"; - ot->idname= "ANIM_OT_keyframe_delete_button"; + ot->name = "Delete Keyframe (Buttons)"; + ot->idname = "ANIM_OT_keyframe_delete_button"; /* callbacks */ - ot->exec= delete_key_button_exec; - ot->poll= modify_key_op_poll; + ot->exec = delete_key_button_exec; + ot->poll = modify_key_op_poll; /* flags */ - ot->flag= OPTYPE_UNDO; + ot->flag = OPTYPE_UNDO; /* properties */ RNA_def_boolean(ot->srna, "all", 1, "All", "Delete keyfames from all elements of the array"); |