style cleanup
authorCampbell Barton <ideasman42@gmail.com>
Fri, 14 Dec 2012 04:38:52 +0000 (04:38 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 14 Dec 2012 04:38:52 +0000 (04:38 +0000)
source/blender/editors/screen/area.c
source/blender/editors/space_node/node_add.c
source/blender/editors/transform/transform_input.c
source/blender/editors/uvedit/uvedit_unwrap_ops.c
source/blender/modifiers/intern/MOD_uvwarp.c
source/blender/windowmanager/WM_api.h

index db57aeb016755685224fced9ee5e308b23948dc0..62ddd10ee7cbf4bc6ea277acc0aa30c06af28896 100644 (file)
@@ -883,7 +883,7 @@ static void region_overlap_fix(ARegion *ar)
        /* find overlapping previous region on same place */
        while (ar1) {
                if (ar1->overlap) {
-                       if ((ar1->alignment & RGN_SPLIT_PREV)==0)
+                       if ((ar1->alignment & RGN_SPLIT_PREV) == 0)
                                if (BLI_rcti_isect(&ar1->winrct, &ar->winrct, NULL))
                                        break;
                }
index 509e326137b0765721f465f7e5ff000ca3a4cb9e..18ce2c81716d4232605f450c70d4b8ea1c3ea866 100644 (file)
@@ -207,7 +207,7 @@ static bNodeSocketLink *add_reroute_do_socket_section(bContext *C, bNodeSocketLi
                        }
                        
                        add_v2_v2(insert_point, socklink->point);
-                       ++num_links;
+                       num_links++;
                }
                socklink = socklink->next;
        }
index 88ed002af89d4e6664b70d9ec56fea4b8afb5975..69569251d01bcd3bdd5116b3699b7248b521ddd9 100644 (file)
@@ -399,7 +399,7 @@ int handleMouseInput(TransInfo *t, MouseInput *mi, wmEvent *event)
                                mi->precision = 1;
                                redraw = TREDRAW_HARD;
                        }
-                       else if(event->val == KM_RELEASE) {
+                       else if (event->val == KM_RELEASE) {
                                t->modifiers &= ~MOD_PRECISION;
                                mi->precision = 0;
                                redraw = TREDRAW_HARD;
index 346ea6edf7a49118ffa013a6dfb4c5352adccd23..cb54689a3c0314506b96312e0030cf189ff10a02 100644 (file)
@@ -1235,7 +1235,7 @@ static int unwrap_exec(bContext *C, wmOperator *op)
        /* double up the check here but better keep ED_unwrap_lscm interface simple and not
         * pass operator for warning append */
        modifier_unwrap_state(obedit, scene, &use_subsurf_final);
-       if(use_subsurf != use_subsurf_final)
+       if (use_subsurf != use_subsurf_final)
                BKE_report(op->reports, RPT_INFO, "Subsurf modifier needs to be first to work with unwrap");
 
        /* execute unwrap */
index 05e8d0df54c7809d61429e50686d0a3a216dda48..5585a71513192f064c24159cbcedd284b5426a6a 100644 (file)
@@ -45,7 +45,7 @@
 
 
 static void uv_warp_from_mat4_pair(float uv_dst[2], const float uv_src[2], float warp_mat[4][4],
-                                     int axis_u, int axis_v)
+                                   int axis_u, int axis_v)
 {
        float tuv[3] = {0.0f};
 
index c1a99513eec029b0c76925e6f0f55798de6d5b41..a4579ea31bc85f3d7bbe225aaab6ac87cb52015e 100644 (file)
@@ -148,7 +148,8 @@ struct wmEventHandler *WM_event_add_ui_handler(const struct bContext *C, ListBas
                        void (*remove)(struct bContext *C, void *userdata), void *userdata);
 void           WM_event_remove_ui_handler(ListBase *handlers,
                                        int (*func)(struct bContext *C, struct wmEvent *event, void *userdata),
-                       void (*remove)(struct bContext *C, void *userdata), void *userdata, int postpone);
+                                       void (*remove)(struct bContext *C, void *userdata),
+                                       void *userdata, int postpone);
 void           WM_event_remove_area_handler(struct ListBase *handlers, void *area);
 
 struct wmEventHandler *WM_event_add_modal_handler(struct bContext *C, struct wmOperator *op);