diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2021-02-02 19:46:48 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2021-02-02 19:46:48 +0300 |
commit | 9ad828dbad94d279521875db47a3472a38cc9b29 (patch) | |
tree | 7f7ef01c32299b3259ca7d0737ea9fe558b8bc82 /extern/mantaflow/preprocessed/fileio/ioutil.cpp | |
parent | f8359b5f52d65a3d59ca9d24db67805d2a0ce316 (diff) |
Fluid: Updated Mantaflow source files
Includes improvements for the file IO. Namely, more meta data will be written from now on.
This change is required to prevent IO issues (e.g. T84649) that arised through the use of sparse grids caching (introduced in 2.92).
Diffstat (limited to 'extern/mantaflow/preprocessed/fileio/ioutil.cpp')
-rw-r--r-- | extern/mantaflow/preprocessed/fileio/ioutil.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extern/mantaflow/preprocessed/fileio/ioutil.cpp b/extern/mantaflow/preprocessed/fileio/ioutil.cpp index 2c7ac7be00e..2bac34c2a65 100644 --- a/extern/mantaflow/preprocessed/fileio/ioutil.cpp +++ b/extern/mantaflow/preprocessed/fileio/ioutil.cpp @@ -90,6 +90,13 @@ template<> void convertFrom(openvdb::Vec3s &in, Vec3 *out) (*out).z = in.z(); } +template<> void convertFrom(openvdb::Vec3i &in, Vec3i *out) +{ + (*out).x = in.x(); + (*out).y = in.y(); + (*out).z = in.z(); +} + // Convert to OpenVDB value from Manta value. template<class S, class T> void convertTo(S *out, T &in) { |