Revision: 48344
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48344
Author:   campbellbarton
Date:     2012-06-27 18:29:47 +0000 (Wed, 27 Jun 2012)
Log Message:
-----------
style cleanup

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/anim.c
    trunk/blender/source/blender/blenkernel/intern/collision.c
    trunk/blender/source/blender/blenkernel/intern/mask.c
    trunk/blender/source/blender/blenkernel/intern/modifiers_bmesh.c
    trunk/blender/source/blender/blenkernel/intern/sequencer.c
    trunk/blender/source/blender/blenkernel/intern/unit.c
    trunk/blender/source/blender/blenkernel/intern/writeffmpeg.c
    trunk/blender/source/blender/blenlib/intern/fileops.c
    trunk/blender/source/blender/blenlib/intern/path_util.c
    trunk/blender/source/blender/blenlib/intern/voronoi.c
    trunk/blender/source/blender/bmesh/intern/bmesh_polygon.c
    trunk/blender/source/blender/collada/MeshImporter.cpp
    trunk/blender/source/blender/collada/SceneExporter.cpp
    trunk/blender/source/blender/collada/collada_utils.cpp
    trunk/blender/source/blender/compositor/intern/COM_OpenCLDevice.cpp
    
trunk/blender/source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.h
    
trunk/blender/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.h
    trunk/blender/source/blender/editors/interface/resources.c
    trunk/blender/source/blender/editors/io/io_collada.c
    trunk/blender/source/blender/editors/io/io_ops.h
    trunk/blender/source/blender/editors/screen/screen_ops.c
    trunk/blender/source/blender/editors/space_sequencer/sequencer_buttons.c
    trunk/blender/source/blender/editors/space_text/text_ops.c
    trunk/blender/source/blender/editors/space_userpref/space_userpref.c
    trunk/blender/source/blender/makesdna/DNA_anim_types.h
    trunk/blender/source/blender/makesdna/DNA_scene_types.h
    trunk/blender/source/blender/makesdna/intern/dna_genfile.c
    trunk/blender/source/blender/makesrna/intern/rna_constraint.c
    trunk/blender/source/blender/makesrna/intern/rna_curve.c
    trunk/blender/source/blender/makesrna/intern/rna_fcurve.c
    trunk/blender/source/blender/makesrna/intern/rna_main.c
    trunk/blender/source/blender/makesrna/intern/rna_main_api.c
    trunk/blender/source/blender/makesrna/intern/rna_mask.c
    trunk/blender/source/blender/makesrna/intern/rna_mesh.c
    trunk/blender/source/blender/makesrna/intern/rna_nodetree.c
    trunk/blender/source/blender/makesrna/intern/rna_object.c
    trunk/blender/source/blender/makesrna/intern/rna_pose.c
    trunk/blender/source/blender/render/intern/raytrace/rayobject_instance.cpp
    trunk/blender/source/tools/check_style_c.py

Modified: trunk/blender/source/blender/blenkernel/intern/anim.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/anim.c       2012-06-27 
18:11:24 UTC (rev 48343)
+++ trunk/blender/source/blender/blenkernel/intern/anim.c       2012-06-27 
18:29:47 UTC (rev 48344)
@@ -1490,7 +1490,7 @@
                        }
 
                        /* only counts visible particles */
-                       ++index;
+                       index++;
                }
 
                /* restore objects since they were changed in 
BKE_object_where_is_calc_time */

Modified: trunk/blender/source/blender/blenkernel/intern/collision.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/collision.c  2012-06-27 
18:11:24 UTC (rev 48343)
+++ trunk/blender/source/blender/blenkernel/intern/collision.c  2012-06-27 
18:29:47 UTC (rev 48344)
@@ -325,8 +325,7 @@
 
                        result = 1;
                }
-               else
-               {
+               else {
                        // Apply repulse impulse if distance too short
                        // I_r = -min(dt*kd, max(0, 1d/dt - v_n))
                        // DG: this formula ineeds to be changed for this code 
since we apply impulses/repulses like this:

Modified: trunk/blender/source/blender/blenkernel/intern/mask.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/mask.c       2012-06-27 
18:11:24 UTC (rev 48343)
+++ trunk/blender/source/blender/blenkernel/intern/mask.c       2012-06-27 
18:29:47 UTC (rev 48344)
@@ -64,7 +64,7 @@
                if (spline->flag & MASK_SPLINE_CYCLIC) {
                        return &points_array[0];
                }
-               else  {
+               else {
                        return NULL;
                }
        }
@@ -79,7 +79,7 @@
                if (spline->flag & MASK_SPLINE_CYCLIC) {
                        return &points_array[spline->tot_point - 1];
                }
-               else  {
+               else {
                        return NULL;
                }
        }
@@ -94,7 +94,7 @@
                if (spline->flag & MASK_SPLINE_CYCLIC) {
                        return &(points_array[0].bezt);
                }
-               else  {
+               else {
                        return NULL;
                }
        }

Modified: trunk/blender/source/blender/blenkernel/intern/modifiers_bmesh.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/modifiers_bmesh.c    
2012-06-27 18:11:24 UTC (rev 48343)
+++ trunk/blender/source/blender/blenkernel/intern/modifiers_bmesh.c    
2012-06-27 18:29:47 UTC (rev 48344)
@@ -72,8 +72,8 @@
        BM_data_layer_add(bm, &bm->edata, CD_BWEIGHT);
        BM_data_layer_add(bm, &bm->vdata, CD_BWEIGHT);
 
-       vtable = MEM_callocN(sizeof(void**) * totvert, "vert table in 
BMDM_Copy");
-       etable = MEM_callocN(sizeof(void**) * totedge, "edge table in 
BMDM_Copy");
+       vtable = MEM_callocN(sizeof(void **) * totvert, "vert table in 
BMDM_Copy");
+       etable = MEM_callocN(sizeof(void **) * totedge, "edge table in 
BMDM_Copy");
 
        /*do verts*/
        mv = mvert = dm->dupVertArray(dm);

Modified: trunk/blender/source/blender/blenkernel/intern/sequencer.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/sequencer.c  2012-06-27 
18:11:24 UTC (rev 48343)
+++ trunk/blender/source/blender/blenkernel/intern/sequencer.c  2012-06-27 
18:29:47 UTC (rev 48344)
@@ -2089,7 +2089,7 @@
                fp_src = maskbuf;
                fp_dst = ibuf->rect_float;
                i = context.rectx * context.recty;
-               while(--i) {
+               while (--i) {
                        fp_dst[0] = fp_dst[1] = fp_dst[2] = *fp_src;
                        fp_dst[3] = 1.0f;
 
@@ -2115,7 +2115,7 @@
                fp_src = maskbuf;
                ub_dst = (unsigned char *)ibuf->rect;
                i = context.rectx * context.recty;
-               while(--i) {
+               while (--i) {
                        ub_dst[0] = ub_dst[1] = ub_dst[2] = (unsigned 
char)(*fp_src * 255.0f); /* already clamped */
                        ub_dst[3] = 255;
 

Modified: trunk/blender/source/blender/blenkernel/intern/unit.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/unit.c       2012-06-27 
18:11:24 UTC (rev 48343)
+++ trunk/blender/source/blender/blenkernel/intern/unit.c       2012-06-27 
18:29:47 UTC (rev 48344)
@@ -125,7 +125,7 @@
 #endif
        {NULL, NULL, NULL,      NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buMetricLenCollecton = {buMetricLenDef, 3, 0, 
sizeof(buMetricLenDef)/sizeof(bUnitDef)};
+static struct bUnitCollection buMetricLenCollecton = {buMetricLenDef, 3, 0, 
sizeof(buMetricLenDef) / sizeof(bUnitDef)};
 
 static struct bUnitDef buImperialLenDef[] = {
        {"mile", "miles",               "mi", "m", "Miles",             
UN_SC_MI, 0.0,  B_UNIT_DEF_NONE},
@@ -137,7 +137,7 @@
        {"thou", "thou",                "thou", "mil", "Thou",  UN_SC_MIL, 0.0, 
B_UNIT_DEF_NONE}, /* plural for thou has no 's' */
        {NULL, NULL, NULL, NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buImperialLenCollecton = {buImperialLenDef, 4, 
0, sizeof(buImperialLenDef)/sizeof(bUnitDef)};
+static struct bUnitCollection buImperialLenCollecton = {buImperialLenDef, 4, 
0, sizeof(buImperialLenDef) / sizeof(bUnitDef)};
 
 /* Areas */
 static struct bUnitDef buMetricAreaDef[] = {
@@ -151,7 +151,7 @@
        {"square micrometer", "square micrometers",     "µm²", "um2",   "Square 
Micrometers", UN_SC_UM*UN_SC_UM, 0.0,   B_UNIT_DEF_NONE},
        {NULL, NULL, NULL,      NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buMetricAreaCollecton = {buMetricAreaDef, 3, 0, 
sizeof(buMetricAreaDef)/sizeof(bUnitDef)};
+static struct bUnitCollection buMetricAreaCollecton = {buMetricAreaDef, 3, 0, 
sizeof(buMetricAreaDef) / sizeof(bUnitDef)};
 
 static struct bUnitDef buImperialAreaDef[] = {
        {"square mile", "square miles",                 "sq mi", "sq m","Square 
Miles", UN_SC_MI*UN_SC_MI, 0.0,         B_UNIT_DEF_NONE},
@@ -163,7 +163,7 @@
        {"square thou", "square thous",                 "sq mil",NULL,  "Square 
Thous", UN_SC_MIL*UN_SC_MIL, 0.0,       B_UNIT_DEF_NONE},
        {NULL, NULL, NULL, NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buImperialAreaCollecton = {buImperialAreaDef, 4, 
0, sizeof(buImperialAreaDef)/sizeof(bUnitDef)};
+static struct bUnitCollection buImperialAreaCollecton = {buImperialAreaDef, 4, 
0, sizeof(buImperialAreaDef) / sizeof(bUnitDef)};
 
 /* Volumes */
 static struct bUnitDef buMetricVolDef[] = {
@@ -177,7 +177,7 @@
        {"cubic micrometer", "cubic micrometers",       "µm³", "um3",   "Cubic 
Micrometers", UN_SC_UM*UN_SC_UM*UN_SC_UM, 0.0,   B_UNIT_DEF_NONE},
        {NULL, NULL, NULL,      NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buMetricVolCollecton = {buMetricVolDef, 3, 0, 
sizeof(buMetricVolDef)/sizeof(bUnitDef)};
+static struct bUnitCollection buMetricVolCollecton = {buMetricVolDef, 3, 0, 
sizeof(buMetricVolDef) / sizeof(bUnitDef)};
 
 static struct bUnitDef buImperialVolDef[] = {
        {"cubic mile", "cubic miles",           "cu mi", "cu m","Cubic Miles", 
UN_SC_MI*UN_SC_MI*UN_SC_MI, 0.0,         B_UNIT_DEF_NONE},
@@ -189,7 +189,7 @@
        {"cubic thou", "cubic thous",           "cu mil",NULL,  "Cubic Thous", 
UN_SC_MIL*UN_SC_MIL*UN_SC_MIL, 0.0,      B_UNIT_DEF_NONE},
        {NULL, NULL, NULL, NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buImperialVolCollecton = {buImperialVolDef, 4, 
0, sizeof(buImperialVolDef)/sizeof(bUnitDef)};
+static struct bUnitCollection buImperialVolCollecton = {buImperialVolDef, 4, 
0, sizeof(buImperialVolDef) / sizeof(bUnitDef)};
 
 /* Mass */
 static struct bUnitDef buMetricMassDef[] = {
@@ -201,7 +201,7 @@
        {"gram", "grams",                       "g",  NULL,     "Grams", 
UN_SC_G, 0.0,                          B_UNIT_DEF_NONE},
        {NULL, NULL, NULL,      NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buMetricMassCollecton = {buMetricMassDef, 2, 0, 
sizeof(buMetricMassDef)/sizeof(bUnitDef)};
+static struct bUnitCollection buMetricMassCollecton = {buMetricMassDef, 2, 0, 
sizeof(buMetricMassDef) / sizeof(bUnitDef)};
 
 static struct bUnitDef buImperialMassDef[] = {
        {"ton", "tonnes",       "ton", "t",     "Tonnes", UN_SC_ITON, 0.0,      
        B_UNIT_DEF_NONE},
@@ -211,7 +211,7 @@
        {"ounce", "ounces",     "oz", NULL,             "Ounces", UN_SC_OZ, 
0.0,        B_UNIT_DEF_NONE},
        {NULL, NULL, NULL, NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buImperialMassCollecton = {buImperialMassDef, 3, 
0, sizeof(buImperialMassDef)/sizeof(bUnitDef)};
+static struct bUnitCollection buImperialMassCollecton = {buImperialMassDef, 3, 
0, sizeof(buImperialMassDef) / sizeof(bUnitDef)};
 
 /* Even if user scales the system to a point where km^3 is used, velocity and
  * acceleration aren't scaled: that's why we have so few units for them */
@@ -222,27 +222,27 @@
        {"kilometer per hour", "kilometers per hour",   "km/h", NULL,   
"Kilometers per hour", UN_SC_KM/3600.0f, 0.0, B_UNIT_DEF_SUPPRESS},
        {NULL, NULL, NULL,      NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buMetricVelCollecton = {buMetricVelDef, 0, 0, 
sizeof(buMetricVelDef)/sizeof(bUnitDef)};
+static struct bUnitCollection buMetricVelCollecton = {buMetricVelDef, 0, 0, 
sizeof(buMetricVelDef) / sizeof(bUnitDef)};
 
 static struct bUnitDef buImperialVelDef[] = {
        {"foot per second", "feet per second",  "ft/s", "fps",  "Feet per 
second", UN_SC_FT, 0.0,               B_UNIT_DEF_NONE}, /* base unit */
        {"mile per hour", "miles per hour",             "mph", NULL,    "Miles 
per hour", UN_SC_MI/3600.0f, 0.0,B_UNIT_DEF_SUPPRESS},
        {NULL, NULL, NULL, NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buImperialVelCollecton = {buImperialVelDef, 0, 
0, sizeof(buImperialVelDef)/sizeof(bUnitDef)};
+static struct bUnitCollection buImperialVelCollecton = {buImperialVelDef, 0, 
0, sizeof(buImperialVelDef) / sizeof(bUnitDef)};
 
 /* Acceleration */
 static struct bUnitDef buMetricAclDef[] = {
        {"meter per second squared", "meters per second squared", "m/s²", 
"m/s2", "Meters per second squared", UN_SC_M, 0.0, B_UNIT_DEF_NONE}, /* base 
unit */
        {NULL, NULL, NULL,      NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buMetricAclCollecton = {buMetricAclDef, 0, 0, 
sizeof(buMetricAclDef)/sizeof(bUnitDef)};
+static struct bUnitCollection buMetricAclCollecton = {buMetricAclDef, 0, 0, 
sizeof(buMetricAclDef) / sizeof(bUnitDef)};
 
 static struct bUnitDef buImperialAclDef[] = {
        {"foot per second squared", "feet per second squared", "ft/s²", 
"ft/s2", "Feet per second squared", UN_SC_FT, 0.0, B_UNIT_DEF_NONE}, /* base 
unit */
        {NULL, NULL, NULL, NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buImperialAclCollecton = {buImperialAclDef, 0, 
0, sizeof(buImperialAclDef)/sizeof(bUnitDef)};
+static struct bUnitCollection buImperialAclCollecton = {buImperialAclDef, 0, 
0, sizeof(buImperialAclDef) / sizeof(bUnitDef)};
 
 /* Time */
 static struct bUnitDef buNaturalTimeDef[] = {
@@ -255,7 +255,7 @@
        {"microsecond", "microseconds", "µs", "us",     "Microseconds", 
0.000001, 0.0,  B_UNIT_DEF_NONE},
        {NULL, NULL, NULL, NULL, NULL, 0.0, 0.0}
 };
-static struct bUnitCollection buNaturalTimeCollecton = {buNaturalTimeDef, 3, 
0, sizeof(buNaturalTimeDef)/sizeof(bUnitDef)};

@@ Diff output truncated at 10240 characters. @@
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to