[Bf-blender-cvs] [b145cc9d361] master: Cleanup: Unused variable warning with path guiding turned off

Hans Goudey noreply at git.blender.org
Tue Sep 27 22:01:49 CEST 2022


Commit: b145cc9d361e21da3a8a0ff2ef3bad1f8e8fbae6
Author: Hans Goudey
Date:   Tue Sep 27 15:00:37 2022 -0500
Branches: master
https://developer.blender.org/rBb145cc9d361e21da3a8a0ff2ef3bad1f8e8fbae6

Cleanup: Unused variable warning with path guiding turned off

===================================================================

M	intern/cycles/integrator/path_trace.cpp

===================================================================

diff --git a/intern/cycles/integrator/path_trace.cpp b/intern/cycles/integrator/path_trace.cpp
index 56b8e46ebda..6b033cfd051 100644
--- a/intern/cycles/integrator/path_trace.cpp
+++ b/intern/cycles/integrator/path_trace.cpp
@@ -1314,6 +1314,9 @@ void PathTrace::set_guiding_params(const GuidingParams &guiding_params, const bo
       guiding_field_->Reset();
     }
   }
+#else
+  (void)guiding_params;
+  (void)reset;
 #endif
 }



More information about the Bf-blender-cvs mailing list