openvdb7.patch 947 B

123456789101112131415161718192021222324252627282930
  1. diff --git a/intern/openvdb/CMakeLists.txt b/intern/openvdb/CMakeLists.txt
  2. index 9ac0817903b..e60d45b7f64 100644
  3. --- a/intern/openvdb/CMakeLists.txt
  4. +++ b/intern/openvdb/CMakeLists.txt
  5. @@ -23,6 +23,8 @@
  6. #
  7. # ***** END GPL LICENSE BLOCK *****
  8. +set (CMAKE_CXX_STANDARD 14)
  9. +
  10. set(INC
  11. .
  12. intern
  13. diff --git a/intern/openvdb/intern/openvdb_writer.cc b/intern/openvdb/intern/openvdb_writer.cc
  14. index 900c5371682..f209ec758b6 100644
  15. --- a/intern/openvdb/intern/openvdb_writer.cc
  16. +++ b/intern/openvdb/intern/openvdb_writer.cc
  17. @@ -39,11 +39,7 @@ void OpenVDBWriter::insert(const openvdb::GridBase::Ptr &grid)
  18. void OpenVDBWriter::insert(const openvdb::GridBase &grid)
  19. {
  20. -#if (OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER <= 3) || defined(OPENVDB_3_ABI_COMPATIBLE)
  21. - m_grids->push_back(grid.copyGrid());
  22. -#else
  23. m_grids->push_back(grid.copyGridWithNewTree());
  24. -#endif
  25. }
  26. void OpenVDBWriter::insertFloatMeta(const openvdb::Name &name, const float value)