Cleanup: style
authorCampbell Barton <ideasman42@gmail.com>
Wed, 11 Mar 2015 02:15:52 +0000 (13:15 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 11 Mar 2015 02:15:52 +0000 (13:15 +1100)
source/blender/editors/space_view3d/view3d_draw.c
source/blender/gpu/GPU_debug.h
source/blender/modifiers/intern/MOD_skin.c
source/blender/physics/intern/BPH_mass_spring.cpp
source/creator/creator.c

index 7b3f8697ccdfb45916a790c7ac87723c8342dccf..58ef9184dd095314bf50b600145908959f10aa5b 100644 (file)
@@ -3192,7 +3192,7 @@ ImBuf *ED_view3d_draw_offscreen_imbuf(Scene *scene, View3D *v3d, ARegion *ar, in
        /* render 3d view */
        if (rv3d->persp == RV3D_CAMOB && v3d->camera) {
                CameraParams params;
-               GPUFXSettings fx_settings = {0};
+               GPUFXSettings fx_settings = {NULL};
                Object *camera = v3d->camera;
 
                BKE_camera_params_init(&params);
index 02c5df013aff57ad2e97f57d8ee28c1631461162..a74c0e7c67b9611d1029a651381dde285fe6685d 100644 (file)
@@ -74,5 +74,4 @@ void gpu_string_marker     (size_t size, const char *str);
 }
 #endif
 
-
-#endif /* __GPU_DEBUG_H__ */
\ No newline at end of file
+#endif /* __GPU_DEBUG_H__ */
index 4a99168f351f565368306448ecf6399eb16308db..bd16fd0704402f381890fc8b30c335b2b6b1a090 100644 (file)
@@ -996,13 +996,13 @@ static void connect_frames(
                float dot = 0.0f;
 
                for (i = 0; i < 4; i++) {
-                       mid_v3_v3v3v3v3(cent_sides[i], UNPACK4_EX(,q[i],->co));
+                       mid_v3_v3v3v3v3(cent_sides[i], UNPACK4_EX(, q[i], ->co));
                }
                mid_v3_v3v3v3v3(cent, UNPACK4(cent_sides));
 
                for (i = 0; i < 4; i++) {
                        float p[3], no[3];
-                       normal_quad_v3(no, UNPACK4_EX(,q[i],->co));
+                       normal_quad_v3(no, UNPACK4_EX(, q[i], ->co));
                        sub_v3_v3v3(p, cent, cent_sides[i]);
                        dot += dot_v3v3(no, p);
                }
index 1387f633c20b25a55b2c3173425aa3a7e803b5e1..e0ca945eaf7095dc2c1256927a9056bc79597a02 100644 (file)
@@ -885,7 +885,7 @@ static void cloth_collision_solve_extra(Object *ob, ClothModifierData *clmd, Lis
        \r
        // call collision function\r
        // TODO: check if "step" or "step+dt" is correct - dg\r
-       do_extra_solve = cloth_bvh_objcollision(ob, clmd, step/clmd->sim_parms->timescale, dt/clmd->sim_parms->timescale);\r
+       do_extra_solve = cloth_bvh_objcollision(ob, clmd, step / clmd->sim_parms->timescale, dt / clmd->sim_parms->timescale);\r
        \r
        // copy corrected positions back to simulation\r
        for (i = 0; i < numverts; i++) {\r
index 47ee1ec4aecaaa85d4983b8e06fe6cb6465960d8..0ca5fbeccacc1208289218d5d69ec64af39d1b3f 100644 (file)
@@ -598,10 +598,9 @@ static void blender_crash_handler(int signum)
 }
 
 #ifdef WIN32
-LONG WINAPI windows_exception_handler(EXCEPTION_POINTERS * ExceptionInfo)
+LONG WINAPI windows_exception_handler(EXCEPTION_POINTERS *ExceptionInfo)
 {
-       switch(ExceptionInfo->ExceptionRecord->ExceptionCode)
-       {
+       switch (ExceptionInfo->ExceptionRecord->ExceptionCode) {
                case EXCEPTION_ACCESS_VIOLATION:
                        fputs("Error: EXCEPTION_ACCESS_VIOLATION\n", stderr);
                        break;
@@ -671,8 +670,7 @@ LONG WINAPI windows_exception_handler(EXCEPTION_POINTERS * ExceptionInfo)
 
        /* If this is a stack overflow then we can't walk the stack, so just show
         * where the error happened */
-       if (EXCEPTION_STACK_OVERFLOW != ExceptionInfo->ExceptionRecord->ExceptionCode)
-       {
+       if (EXCEPTION_STACK_OVERFLOW != ExceptionInfo->ExceptionRecord->ExceptionCode) {
                blender_crash_handler(SIGSEGV);
        }