Commit: 0ffbcc44168dc3b2058a16648775c874dce89727
Author: Sebastian Parborg
Date:   Thu Apr 1 12:35:33 2021 +0200
Branches: master
https://developer.blender.org/rB0ffbcc44168dc3b2058a16648775c874dce89727

Fix "unused variable" warning when compiling without nanovdb

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

M       intern/cycles/render/image_vdb.cpp

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

diff --git a/intern/cycles/render/image_vdb.cpp 
b/intern/cycles/render/image_vdb.cpp
index 63e6214f1c8..fb6394e8917 100644
--- a/intern/cycles/render/image_vdb.cpp
+++ b/intern/cycles/render/image_vdb.cpp
@@ -179,9 +179,13 @@ bool VDBImageLoader::load_metadata(const 
ImageDeviceFeatures &features, ImageMet
   metadata.transform_3d = transform_inverse(index_to_object * 
texture_to_index);
   metadata.use_transform_3d = true;
 
+#  ifndef WITH_NANOVDB
+  (void)features;
+#  endif
   return true;
 #else
   (void)metadata;
+  (void)features;
   return false;
 #endif
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to