diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-31 23:31:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-31 23:32:13 +0300 |
commit | 798cd8a7230dba1a0aead06bb82857b881a42f95 (patch) | |
tree | ae723795f7d859d34c530a6c9c40bf081ce50674 /source/blender/editors | |
parent | 35b888fbda83fe1a393d2e70efed1dedf04614ac (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 4 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_empty.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index fee69b01c48..39b1bed3ac1 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -322,7 +322,7 @@ static eFCU_Cycle_Type remap_cyclic_keyframe_location(FCurve *fcu, float *px, fl return FCU_CYCLE_NONE; } - BezTriple *first = &fcu->bezt[0], *last = &fcu->bezt[fcu->totvert-1]; + BezTriple *first = &fcu->bezt[0], *last = &fcu->bezt[fcu->totvert - 1]; float start = first->vec[1][0], end = last->vec[1][0]; if (start >= end) { @@ -336,7 +336,7 @@ static eFCU_Cycle_Type remap_cyclic_keyframe_location(FCurve *fcu, float *px, fl if (type == FCU_CYCLE_OFFSET) { /* Nasty check to handle the case when the modes are different better. */ - FMod_Cycles *data = (FMod_Cycles *)((FModifier*)fcu->modifiers.first)->data; + FMod_Cycles *data = ((FModifier *)fcu->modifiers.first)->data; short mode = (step >= 0) ? data->after_mode : data->before_mode; if (mode == FCM_EXTRAPOLATE_CYCLIC_OFFSET) { diff --git a/source/blender/editors/space_view3d/view3d_gizmo_empty.c b/source/blender/editors/space_view3d/view3d_gizmo_empty.c index bc190355ea6..c58b1a6d6cd 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_empty.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_empty.c @@ -132,7 +132,7 @@ static bool WIDGETGROUP_empty_image_poll(const bContext *C, wmGizmoGroupType *UN Object *ob = CTX_data_active_object(C); if (ob && ob->type == OB_EMPTY) { - if (ob->empty_drawtype == OB_EMPTY_IMAGE){ + if (ob->empty_drawtype == OB_EMPTY_IMAGE) { return is_image_empty_visible(ob, rv3d); } } |