Cycles: Cleanup, style
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 7 Nov 2017 12:55:58 +0000 (13:55 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 7 Nov 2017 12:55:58 +0000 (13:55 +0100)
intern/cycles/blender/blender_sync.cpp
intern/cycles/render/object.cpp

index b070bf89d4460f42dac07401360502a1c1729581..142fd5ef85b297de772cc59154f4f27ba6be3d07 100644 (file)
@@ -573,7 +573,8 @@ array<Pass> BlenderSync::sync_render_passes(BL::RenderLayer& b_rlay,
 
        PointerRNA crp = RNA_pointer_get(&b_srlay.ptr, "cycles");
        if(get_boolean(crp, "denoising_store_passes") &&
 
        PointerRNA crp = RNA_pointer_get(&b_srlay.ptr, "cycles");
        if(get_boolean(crp, "denoising_store_passes") &&
-          get_boolean(crp, "use_denoising")) {
+          get_boolean(crp, "use_denoising"))
+       {
                b_engine.add_pass("Denoising Normal",          3, "XYZ", b_srlay.name().c_str());
                b_engine.add_pass("Denoising Normal Variance", 3, "XYZ", b_srlay.name().c_str());
                b_engine.add_pass("Denoising Albedo",          3, "RGB", b_srlay.name().c_str());
                b_engine.add_pass("Denoising Normal",          3, "XYZ", b_srlay.name().c_str());
                b_engine.add_pass("Denoising Normal Variance", 3, "XYZ", b_srlay.name().c_str());
                b_engine.add_pass("Denoising Albedo",          3, "RGB", b_srlay.name().c_str());
index a12a0d297f0448c49e93469c95bdfe7cc1f46159..c70111d15b00e5c8f652205e4953f98adb87ba91 100644 (file)
@@ -264,7 +264,7 @@ bool Object::is_traceable()
 
 uint Object::visibility_for_tracing() const {
        uint trace_visibility = visibility;
 
 uint Object::visibility_for_tracing() const {
        uint trace_visibility = visibility;
-       if (is_shadow_catcher) {
+       if(is_shadow_catcher) {
                trace_visibility &= ~PATH_RAY_SHADOW_NON_CATCHER;
        }
        else {
                trace_visibility &= ~PATH_RAY_SHADOW_NON_CATCHER;
        }
        else {