Cleanup: style
authorCampbell Barton <ideasman42@gmail.com>
Wed, 1 Nov 2017 00:56:56 +0000 (11:56 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 1 Nov 2017 00:56:56 +0000 (11:56 +1100)
source/blender/alembic/intern/abc_mball.cc
source/blender/blenkernel/intern/fcurve.c
source/blender/bmesh/intern/bmesh_edgeloop.c
source/blender/editors/interface/interface_layout.c

index 56bb609ace0437db6931fab38b03598171f2dd48..1ef7b7575776821a1c8089f6f372fb78f0c7ca73 100644 (file)
@@ -54,7 +54,7 @@ AbcMBallWriter::AbcMBallWriter(
        m_is_animated = isAnimated();
 
        m_mesh_ob = BKE_object_copy(bmain, ob);
        m_is_animated = isAnimated();
 
        m_mesh_ob = BKE_object_copy(bmain, ob);
-       m_mesh_ob->curve_cache = (CurveCache*)MEM_callocN(
+       m_mesh_ob->curve_cache = (CurveCache *)MEM_callocN(
                                     sizeof(CurveCache),
                                     "CurveCache for AbcMBallWriter");
 
                                     sizeof(CurveCache),
                                     "CurveCache for AbcMBallWriter");
 
index 1a93031034bf69e4f492c5c832868ee3d4b48812..c9f1f288182ca1c2a99cd827795f516e8a67dc4b 100644 (file)
@@ -896,7 +896,7 @@ bool BKE_fcurve_is_cyclic(FCurve *fcu)
        if (fcm->flag & (FMODIFIER_FLAG_RANGERESTRICT | FMODIFIER_FLAG_USEINFLUENCE))
                return false;
 
        if (fcm->flag & (FMODIFIER_FLAG_RANGERESTRICT | FMODIFIER_FLAG_USEINFLUENCE))
                return false;
 
-       FMod_Cycles *data = (FMod_Cycles*)fcm->data;
+       FMod_Cycles *data = (FMod_Cycles *)fcm->data;
 
        return data && data->after_cycles == 0 && data->before_cycles == 0 &&
            ELEM(data->before_mode, FCM_EXTRAPOLATE_CYCLIC, FCM_EXTRAPOLATE_CYCLIC_OFFSET) &&
 
        return data && data->after_cycles == 0 && data->before_cycles == 0 &&
            ELEM(data->before_mode, FCM_EXTRAPOLATE_CYCLIC, FCM_EXTRAPOLATE_CYCLIC_OFFSET) &&
@@ -939,14 +939,14 @@ void calchandles_fcurve(FCurve *fcu)
                return;
 
        /* if the first modifier is Cycles, smooth the curve through the cycle */
                return;
 
        /* if the first modifier is Cycles, smooth the curve through the cycle */
-       BezTriple *first = &fcu->bezt[0], *last = &fcu->bezt[fcu->totvert-1];
+       BezTriple *first = &fcu->bezt[0], *last = &fcu->bezt[fcu->totvert - 1];
        BezTriple tmp;
 
        bool cycle = BKE_fcurve_is_cyclic(fcu) && BEZT_IS_AUTOH(first) && BEZT_IS_AUTOH(last);
 
        /* get initial pointers */
        bezt = fcu->bezt;
        BezTriple tmp;
 
        bool cycle = BKE_fcurve_is_cyclic(fcu) && BEZT_IS_AUTOH(first) && BEZT_IS_AUTOH(last);
 
        /* get initial pointers */
        bezt = fcu->bezt;
-       prev = cycle_offset_triple(cycle, &tmp, &fcu->bezt[fcu->totvert-2], last, first);
+       prev = cycle_offset_triple(cycle, &tmp, &fcu->bezt[fcu->totvert - 2], last, first);
        next = (bezt + 1);
        
        /* loop over all beztriples, adjusting handles */
        next = (bezt + 1);
        
        /* loop over all beztriples, adjusting handles */
index 9d51b59825de05ba0d8de831e9d220fd7ca95f3f..54fe2801d0c0d0f999036c7c1797d34e42353bd5 100644 (file)
@@ -168,8 +168,8 @@ int BM_mesh_edgeloops_find(
 
                        /* add both directions */
                        if (bm_loop_build(el_store, e->v1, e->v2,  1) &&
 
                        /* add both directions */
                        if (bm_loop_build(el_store, e->v1, e->v2,  1) &&
-                               bm_loop_build(el_store, e->v2, e->v1, -1) &&
-                               el_store->len > 1)
+                           bm_loop_build(el_store, e->v2, e->v1, -1) &&
+                           el_store->len > 1)
                        {
                                BLI_addtail(r_eloops, el_store);
                                count++;
                        {
                                BLI_addtail(r_eloops, el_store);
                                count++;
index a0840f7fb34953054ede751345d9f5618c5f0d4e..616fc055c03aeb8621444b79843d9db31f441a3f 100644 (file)
@@ -875,7 +875,7 @@ void uiItemFullO(
                ot, opname, {
                    if (r_opptr) {
                        *r_opptr = PointerRNA_NULL;
                ot, opname, {
                    if (r_opptr) {
                        *r_opptr = PointerRNA_NULL;
-                   };
+                   }
                    return;
                });
 
                    return;
                });