style cleanup and correct own invalid comment.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 31 Oct 2012 11:45:41 +0000 (11:45 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 31 Oct 2012 11:45:41 +0000 (11:45 +0000)
intern/smoke/intern/smoke_API.cpp
source/blender/blenkernel/intern/customdata.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/interface/interface_regions.c

index 3dce804c543e63c7979e2e37be8f05aecbc71605..6011de0bddb32a3b1fa75baef22054b7d6d7bfbd 100644 (file)
@@ -386,7 +386,7 @@ extern "C" float *smoke_turbulence_get_flame(WTURBULENCE *wt)
 
 extern "C" void smoke_turbulence_get_res(WTURBULENCE *wt, int *res)
 {
-       if(wt) {
+       if (wt) {
                Vec3Int r = wt->getResBig();
                res[0] = r[0];
                res[1] = r[1];
@@ -396,9 +396,9 @@ extern "C" void smoke_turbulence_get_res(WTURBULENCE *wt, int *res)
 
 extern "C" int smoke_turbulence_get_cells(WTURBULENCE *wt)
 {
-       if(wt) {
+       if (wt) {
                Vec3Int r = wt->getResBig();
-               return r[0]*r[1]*r[2];
+               return r[0] * r[1] * r[2];
        }
        return 0;
 }
index 76ed8467c8f3fe36bf0ea77533de3339f5551d03..93c776ae30e2a3a94d33c8191de689f9717b6d1e 100644 (file)
@@ -75,12 +75,9 @@ BLI_STATIC_ASSERT(sizeof(((CustomData *)NULL)->typemap) /
 typedef struct LayerTypeInfo {
        int size;          /* the memory size of one element of this layer's data */
 
-       /**
-        * name of the struct used, for file writing */
+       /** name of the struct used, for file writing */
        const char *structname;
-       /**
-        * number of structs per element, for file writing
-        * (set to zero skips writing this data to disk/undo) */
+       /** number of structs per element, for file writing */
        int structnum;
 
        /**
index b49e392d1f4ed162fb4598edeb3068c6dc994b6f..8aa879a354b8073c9550e628eaaf5fc51e59c1b6 100644 (file)
@@ -7144,8 +7144,8 @@ static void do_version_logic_264(ListBase *regionbase)
        
        /* view settings for logic changed */
        for (ar = regionbase->first; ar; ar = ar->next) {
-               if(ar->regiontype == RGN_TYPE_WINDOW) {
-                       if (ar->v2d.keeptot==0) {
+               if (ar->regiontype == RGN_TYPE_WINDOW) {
+                       if (ar->v2d.keeptot == 0) {
                                ar->v2d.maxzoom = 1.5f;
                                
                                ar->v2d.keepzoom = V2D_KEEPZOOM | V2D_LIMITZOOM | V2D_KEEPASPECT;
index c0a8f6582f635dcaf00a7f1bc38ff080ac8b9719..578619abe1a9face0ccfeb5c274dbfeb8cc86bbd 100644 (file)
@@ -1593,11 +1593,11 @@ void ui_popup_block_scrolltest(uiBlock *block)
 
        /* mark buttons overlapping arrows, if we have them */
        for (bt = block->buttons.first; bt; bt = bt->next) {
-               if(block->flag & UI_BLOCK_CLIPBOTTOM) {
+               if (block->flag & UI_BLOCK_CLIPBOTTOM) {
                        if (bt->rect.ymin < block->rect.ymin + 12)
                                bt->flag |= UI_SCROLLED;
                }
-               if(block->flag & UI_BLOCK_CLIPTOP) {
+               if (block->flag & UI_BLOCK_CLIPTOP) {
                        if (bt->rect.ymax > block->rect.ymax - 12)
                                bt->flag |= UI_SCROLLED;
                }