diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-01 02:35:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-01 02:35:25 +0400 |
commit | 3e97e2c8e812e32de35d01c7692477686154a521 (patch) | |
tree | 6b264510d2a6e37332cfc0d63999df02eacb1b0a /source/blender/editors/space_clip | |
parent | b577f0c16ebf16d9cf73e103143a6c7466421c61 (diff) |
style cleanup
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r-- | source/blender/editors/space_clip/tracking_ops.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c index 3f9b2aac0f1..49b16a68dfc 100644 --- a/source/blender/editors/space_clip/tracking_ops.c +++ b/source/blender/editors/space_clip/tracking_ops.c @@ -177,17 +177,17 @@ static int add_marker_at_click_invoke(bContext *C, wmOperator *op, const wmEvent static int add_marker_at_click_modal(bContext *C, wmOperator *UNUSED(op), const wmEvent *event) { - SpaceClip *sc = CTX_wm_space_clip(C); - MovieClip *clip = ED_space_clip_get_clip(sc); - ARegion *ar = CTX_wm_region(C); - float pos[2]; + SpaceClip *sc = CTX_wm_space_clip(C); + MovieClip *clip = ED_space_clip_get_clip(sc); + ARegion *ar = CTX_wm_region(C); + float pos[2]; - switch(event->type) { - case MOUSEMOVE: + switch (event->type) { + case MOUSEMOVE: return OPERATOR_RUNNING_MODAL; break; - case LEFTMOUSE: + case LEFTMOUSE: ED_area_headerprint(CTX_wm_area(C), NULL); ED_clip_point_stable_pos(sc, ar, @@ -203,11 +203,11 @@ static int add_marker_at_click_modal(bContext *C, wmOperator *UNUSED(op), const break; case ESCKEY: - ED_area_headerprint(CTX_wm_area(C), NULL); - return OPERATOR_CANCELLED; - } + ED_area_headerprint(CTX_wm_area(C), NULL); + return OPERATOR_CANCELLED; + } - return OPERATOR_PASS_THROUGH; + return OPERATOR_PASS_THROUGH; } void CLIP_OT_add_marker_at_click(wmOperatorType *ot) |