Cycles: Cleanup, style
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 18 Apr 2017 09:39:21 +0000 (11:39 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 18 Apr 2017 09:39:21 +0000 (11:39 +0200)
intern/cycles/device/opencl/opencl_util.cpp
intern/cycles/kernel/kernel_shadow.h
intern/cycles/kernel/split/kernel_holdout_emission_blurring_pathtermination_ao.h

index fe1c65a2224d3c2217a8e16f6d0af6f29fd96a20..38003dd1e1e108898edae68f13fd2cd04c071813 100644 (file)
@@ -902,7 +902,7 @@ bool OpenCLInfo::get_platform_name(cl_platform_id platform_id,
 string OpenCLInfo::get_platform_name(cl_platform_id platform_id)
 {
        string platform_name;
-       if (!get_platform_name(platform_id, &platform_name)) {
+       if(!get_platform_name(platform_id, &platform_name)) {
                return "";
        }
        return platform_name;
index db6f839d9edb35530d875b59f6064128af63474d..fab5946970d42186448af57efa8c487a546fc5cf 100644 (file)
@@ -379,7 +379,7 @@ ccl_device bool shadow_blocked_transparent_stepped(
         float3 *shadow)
 {
        bool blocked, is_transparent_isect;
-       if (skip_object == OBJECT_NONE) {
+       if(skip_object == OBJECT_NONE) {
                blocked = scene_intersect(kg,
                                          *ray,
                                          PATH_RAY_SHADOW_OPAQUE,
index 9fc853a84bf9de1fbc55c218843d93cf42f8ab1d..89adeb64c8a8de65d2243f155488c5486c0c767a 100644 (file)
@@ -122,7 +122,7 @@ ccl_device void kernel_holdout_emission_blurring_pathtermination_ao(
 
 #ifdef __SHADOW_TRICKS__
                if((sd->object_flag & SD_OBJECT_SHADOW_CATCHER)) {
-                       if (state->flag & PATH_RAY_CAMERA) {
+                       if(state->flag & PATH_RAY_CAMERA) {
                                state->flag |= (PATH_RAY_SHADOW_CATCHER | PATH_RAY_SHADOW_CATCHER_ONLY);
                                state->catcher_object = sd->object;
                                if(!kernel_data.background.transparent) {