diff options
-rw-r--r-- | intern/cycles/scene/image_vdb.cpp | 2 | ||||
-rw-r--r-- | intern/cycles/scene/image_vdb.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/scene/image_vdb.cpp b/intern/cycles/scene/image_vdb.cpp index 8f30433c229..b6f0911fa2c 100644 --- a/intern/cycles/scene/image_vdb.cpp +++ b/intern/cycles/scene/image_vdb.cpp @@ -64,12 +64,12 @@ struct ToNanoOp { } }; # endif -#endif VDBImageLoader::VDBImageLoader(openvdb::GridBase::ConstPtr grid_, const string &grid_name) : grid_name(grid_name), grid(grid_) { } +#endif VDBImageLoader::VDBImageLoader(const string &grid_name) : grid_name(grid_name) { diff --git a/intern/cycles/scene/image_vdb.h b/intern/cycles/scene/image_vdb.h index 4c1aba80af8..a5fd51915ef 100644 --- a/intern/cycles/scene/image_vdb.h +++ b/intern/cycles/scene/image_vdb.h @@ -17,7 +17,9 @@ CCL_NAMESPACE_BEGIN class VDBImageLoader : public ImageLoader { public: +#ifdef WITH_OPENVDB VDBImageLoader(openvdb::GridBase::ConstPtr grid_, const string &grid_name); +#endif VDBImageLoader(const string &grid_name); ~VDBImageLoader(); |