Cleanup: style
authorCampbell Barton <ideasman42@gmail.com>
Thu, 13 Dec 2018 01:30:38 +0000 (12:30 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 13 Dec 2018 01:30:38 +0000 (12:30 +1100)
source/blender/blenkernel/intern/customdata.c
source/blender/draw/intern/draw_manager_exec.c
source/blender/editors/transform/transform_gizmo_3d.c

index 64a3cbe09354cf6a0800c8b8a9cdabc3e08135e9..1fbeaf675961af102c302fc7b6655a8dee44942b 100644 (file)
@@ -1197,7 +1197,7 @@ static void layerDefault_mvert_skin(void *data, int count)
 static void layerCopy_mvert_skin(const void *source, void *dest,
                                  int count)
 {
-       memcpy(dest, source, sizeof (MVertSkin) * count);
+       memcpy(dest, source, sizeof(MVertSkin) * count);
 }
 
 static void layerInterp_mvert_skin(
index 985c4a737758292ce500373ffaa5433151cd16fb..ecbd94e24ee484e12f00387e8f09f4eb3d6e0513 100644 (file)
@@ -348,7 +348,8 @@ void drw_state_set(DRWState state)
                if (CHANGED_ANY_STORE_VAR(
                        DRW_STATE_OFFSET_POSITIVE |
                        DRW_STATE_OFFSET_NEGATIVE,
-                       test)) {
+                       test))
+               {
                        if (test) {
                                glEnable(GL_POLYGON_OFFSET_FILL);
                                /* Stencil Write */
index 11d8949750dc7728c4f28e0877b1d744af4fade1..97df4a68af9e839a473c758eb8850f348643309e 100644 (file)
@@ -878,11 +878,11 @@ int ED_transform_calc_gizmo_stats(
                                                        totsel++;
                                                }
                                                if ((ebo->flag & BONE_ROOTSEL) &&
-                                                       /* don't include same point multiple times */
-                                                       ((ebo->flag & BONE_CONNECTED) &&
-                                                        (ebo->parent != NULL) &&
-                                                        (ebo->parent->flag & BONE_TIPSEL) &&
-                                                        EBONE_VISIBLE(arm, ebo->parent)) == 0)
+                                                   /* don't include same point multiple times */
+                                                   ((ebo->flag & BONE_CONNECTED) &&
+                                                    (ebo->parent != NULL) &&
+                                                    (ebo->parent->flag & BONE_TIPSEL) &&
+                                                    EBONE_VISIBLE(arm, ebo->parent)) == 0)
                                                {
                                                        calc_tw_center_with_matrix(tbounds, ebo->head, use_mat_local, mat_local);
                                                        totsel++;
@@ -1303,8 +1303,8 @@ void drawDial3d(const TransInfo *t)
                mat_basis[2][3] = -dot_v3v3(mat_basis[2], mat_basis[3]);
 
                if (ED_view3d_win_to_3d_on_plane(
-                       t->ar, mat_basis[2], (float[2]){UNPACK2(t->mouse.imval)},
-                       false, mat_basis[1]))
+                           t->ar, mat_basis[2], (float[2]){UNPACK2(t->mouse.imval)},
+                           false, mat_basis[1]))
                {
                        sub_v3_v3(mat_basis[1], mat_basis[3]);
                        normalize_v3(mat_basis[1]);