summarylogtreecommitdiffstats
path: root/openvdb.patch
diff options
context:
space:
mode:
authorbartus2018-05-25 14:58:48 +0200
committerbartus2018-05-25 15:00:51 +0200
commite60af7afa51f900fbba32b51e15feb23e09d43f0 (patch)
tree8614284b376650d32ffb6e994bff4803d52aee64 /openvdb.patch
downloadaur-e60af7afa51f900fbba32b51e15feb23e09d43f0.tar.gz
init
Diffstat (limited to 'openvdb.patch')
-rw-r--r--openvdb.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/openvdb.patch b/openvdb.patch
new file mode 100644
index 000000000000..8d0a3b656152
--- /dev/null
+++ b/openvdb.patch
@@ -0,0 +1,13 @@
+diff --git a/intern/openvdb/intern/openvdb_writer.cc b/intern/openvdb/intern/openvdb_writer.cc
+index e886c5a76a8..bedcfe65552 100644
+--- a/intern/openvdb/intern/openvdb_writer.cc
++++ b/intern/openvdb/intern/openvdb_writer.cc
+@@ -45,7 +45,7 @@ void OpenVDBWriter::insert(const openvdb::GridBase::Ptr &grid)
+
+ void OpenVDBWriter::insert(const openvdb::GridBase &grid)
+ {
+-#if (OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER == 3)
++#if (OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER <= 3) || defined(OPENVDB_3_ABI_COMPATIBLE)
+ m_grids->push_back(grid.copyGrid());
+ #else
+ m_grids->push_back(grid.copyGridWithNewTree());