diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2022-02-16 21:49:58 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2022-02-16 21:49:58 +0300 |
commit | 05697470ab0dde6646be939ae57a95c9d4099e0b (patch) | |
tree | 62f76ddd3ddd0de54c17351a37c48a52bb1bfbdd /source/blender/blenkernel/intern | |
parent | 0622d2ec611dbd68fe4105f507f639e3e34c13f6 (diff) |
Cleanup: Remove deprecated StringGrid from our openvdb code
StringGrid has been deprecated in openvdb 9.0.0 and will be removed soon
Reviewed By: Brecht
Differential Revision: http://developer.blender.org/D14133
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/volume.cc | 13 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/volume_render.cc | 1 |
2 files changed, 2 insertions, 12 deletions
diff --git a/source/blender/blenkernel/intern/volume.cc b/source/blender/blenkernel/intern/volume.cc index 39a7725bfa3..a0e2d1a83cd 100644 --- a/source/blender/blenkernel/intern/volume.cc +++ b/source/blender/blenkernel/intern/volume.cc @@ -1345,9 +1345,6 @@ VolumeGridType BKE_volume_grid_type_openvdb(const openvdb::GridBase &grid) if (grid.isType<openvdb::Vec3dGrid>()) { return VOLUME_GRID_VECTOR_DOUBLE; } - if (grid.isType<openvdb::StringGrid>()) { - return VOLUME_GRID_STRING; - } if (grid.isType<openvdb::MaskGrid>()) { return VOLUME_GRID_MASK; } @@ -1383,7 +1380,6 @@ int BKE_volume_grid_channels(const VolumeGrid *grid) case VOLUME_GRID_VECTOR_DOUBLE: case VOLUME_GRID_VECTOR_INT: return 3; - case VOLUME_GRID_STRING: case VOLUME_GRID_POINTS: case VOLUME_GRID_UNKNOWN: return 0; @@ -1624,13 +1620,8 @@ struct CreateGridWithChangedResolutionOp { template<typename GridType> typename openvdb::GridBase::Ptr operator()() { - if constexpr (std::is_same_v<GridType, openvdb::StringGrid>) { - return {}; - } - else { - return create_grid_with_changed_resolution(static_cast<const GridType &>(grid), - resolution_factor); - } + return create_grid_with_changed_resolution(static_cast<const GridType &>(grid), + resolution_factor); } }; diff --git a/source/blender/blenkernel/intern/volume_render.cc b/source/blender/blenkernel/intern/volume_render.cc index c0a205b5673..7ccf04df941 100644 --- a/source/blender/blenkernel/intern/volume_render.cc +++ b/source/blender/blenkernel/intern/volume_render.cc @@ -77,7 +77,6 @@ static void extract_dense_float_voxels(const VolumeGridType grid_type, case VOLUME_GRID_VECTOR_INT: return extract_dense_voxels<openvdb::Vec3IGrid, openvdb::Vec3f>( grid, bbox, reinterpret_cast<openvdb::Vec3f *>(r_voxels)); - case VOLUME_GRID_STRING: case VOLUME_GRID_POINTS: case VOLUME_GRID_UNKNOWN: /* Zero channels to copy. */ |