diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-06 16:58:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-07 01:15:07 +0300 |
commit | b4a77a351e31256c91e573b85b7252e3ca6d61e7 (patch) | |
tree | 9db5ba44e217789f632f90d44babafa4aea1da5f /source/blender/editors/space_view3d/view3d_edit.c | |
parent | d5c24f2030ecbd109f54bd49c254fd028c30cc00 (diff) |
Cleanup: add trailing commas to structs
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_edit.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index 4ac2121c7a4..0586f11452a 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -2659,12 +2659,13 @@ static void view3d_from_minmax( C, v3d, ar, smooth_viewtx, &(const V3D_SmoothParams) { .camera_old = v3d->camera, .ofs = new_ofs, - .dist = ok_dist ? &new_dist : NULL}); + .dist = ok_dist ? &new_dist : NULL, + }); } else { ED_view3d_smooth_view( C, v3d, ar, smooth_viewtx, - &(const V3D_SmoothParams) {.ofs = new_ofs, .dist = ok_dist ? &new_dist : NULL}); + &(const V3D_SmoothParams) { .ofs = new_ofs, .dist = ok_dist ? &new_dist : NULL, }); } /* smooth view does viewlock RV3D_BOXVIEW copy */ @@ -3497,7 +3498,7 @@ static int view3d_zoom_border_exec(bContext *C, wmOperator *op) ED_view3d_smooth_view( C, v3d, ar, smooth_viewtx, - &(const V3D_SmoothParams) {.ofs = new_ofs, .dist = &new_dist}); + &(const V3D_SmoothParams) { .ofs = new_ofs, .dist = &new_dist, }); if (rv3d->viewlock & RV3D_BOXVIEW) { view3d_boxview_sync(CTX_wm_area(C), ar); @@ -3642,7 +3643,7 @@ static void axis_set_view( /* to camera */ ED_view3d_smooth_view( C, v3d, ar, smooth_viewtx, - &(const V3D_SmoothParams) {.camera_old = v3d->camera, .ofs = rv3d->ofs, .quat = quat}); + &(const V3D_SmoothParams) { .camera_old = v3d->camera, .ofs = rv3d->ofs, .quat = quat, }); } else if (orig_persp == RV3D_CAMOB && v3d->camera) { /* from camera */ @@ -3657,7 +3658,7 @@ static void axis_set_view( ED_view3d_smooth_view( C, v3d, ar, smooth_viewtx, - &(const V3D_SmoothParams) {.ofs = ofs, .quat = quat, .dist = &dist}); + &(const V3D_SmoothParams) { .ofs = ofs, .quat = quat, .dist = &dist, }); } else { /* rotate around selection */ @@ -3674,7 +3675,7 @@ static void axis_set_view( /* no camera involved */ ED_view3d_smooth_view( C, v3d, ar, smooth_viewtx, - &(const V3D_SmoothParams) {.quat = quat, .dyn_ofs = dyn_ofs_pt}); + &(const V3D_SmoothParams) { .quat = quat, .dyn_ofs = dyn_ofs_pt, }); } } @@ -3872,7 +3873,8 @@ static int view_camera_exec(bContext *C, wmOperator *op) C, v3d, ar, smooth_viewtx, &(const V3D_SmoothParams) { .camera = v3d->camera, .ofs = rv3d->ofs, .quat = rv3d->viewquat, - .dist = &rv3d->dist, .lens = &v3d->lens}); + .dist = &rv3d->dist, .lens = &v3d->lens, + }); } else { /* return to settings of last view */ @@ -3998,7 +4000,7 @@ static int vieworbit_exec(bContext *C, wmOperator *op) ED_view3d_smooth_view( C, v3d, ar, smooth_viewtx, - &(const V3D_SmoothParams) {.quat = quat_new, .dyn_ofs = dyn_ofs_pt}); + &(const V3D_SmoothParams) { .quat = quat_new, .dyn_ofs = dyn_ofs_pt, }); return OPERATOR_FINISHED; } @@ -4188,7 +4190,7 @@ static int viewroll_exec(bContext *C, wmOperator *op) ED_view3d_smooth_view( C, v3d, ar, smooth_viewtx, - &(const V3D_SmoothParams) {.quat = quat_new, .dyn_ofs = dyn_ofs_pt}); + &(const V3D_SmoothParams) { .quat = quat_new, .dyn_ofs = dyn_ofs_pt, }); viewops_data_free(C, op); return OPERATOR_FINISHED; |