Cleanup: add trailing commas to structs
[blender.git] / source / blender / editors / space_view3d / view3d_edit.c
index 4ac2121c7a4bff74796a5af39ffd8eafb5e9dc62..0586f11452a2b35ee6d11daa09e396a8e937626f 100644 (file)
@@ -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;