diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-04-20 10:57:56 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-04-20 10:58:42 +0300 |
commit | 8adc7cad00dab0c603dd11b1f9eac8cd726995aa (patch) | |
tree | 29829f8b2f2106cc3d26be080a1b879d139cc673 /intern/cycles | |
parent | 31a2feceb8dc3709187d54e1f9600b0997c39242 (diff) |
Fix compilation without OpenVDB
Diffstat (limited to 'intern/cycles')
-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(); |