diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-11-11 20:13:06 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-11-12 21:52:04 +0300 |
commit | ddc6a45a542fa7320ac9a99d8b3d6dbb1c69d62f (patch) | |
tree | 9d1064bcb797eac3b6176bf5802ed4dc90e02261 | |
parent | c43283d10b11791c13a0ca3b21dabc53e6a76d96 (diff) |
Cleanup: compiler warning
-rw-r--r-- | intern/cycles/render/image_vdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/image_vdb.cpp b/intern/cycles/render/image_vdb.cpp index 5d0999d5623..70b3de5a939 100644 --- a/intern/cycles/render/image_vdb.cpp +++ b/intern/cycles/render/image_vdb.cpp @@ -48,7 +48,6 @@ bool VDBImageLoader::load_metadata(ImageMetaData &metadata) /* Set dimensions. */ openvdb::Coord dim = bbox.dim(); - openvdb::Coord min = bbox.min(); metadata.width = dim.x(); metadata.height = dim.y(); metadata.depth = dim.z(); @@ -147,6 +146,7 @@ bool VDBImageLoader::load_metadata(ImageMetaData &metadata) # ifdef WITH_NANOVDB Transform texture_to_index = transform_identity(); # else + openvdb::Coord min = bbox.min(); Transform texture_to_index = transform_translate(min.x(), min.y(), min.z()) * transform_scale(dim.x(), dim.y(), dim.z()); # endif |