Cleanup: unused type alias in release build

`volume_grid_function_eval.cc(635,15): warning: unused type alias 'ValueType' [-Wunused-local-typedef]`

Pull Request: https://projects.blender.org/blender/blender/pulls/140497
This commit is contained in:
илья _
2025-06-17 17:49:21 +02:00
committed by Jacques Lucke
parent 6af1afa27f
commit 9fcb41de5e

View File

@@ -631,9 +631,11 @@ BLI_NOINLINE static void process_background(const mf::MultiFunction &fn,
if (const openvdb::GridBase *grid_base = input_grids[input_i]) {
to_typed_grid(*grid_base, [&](const auto &grid) {
# ifndef NDEBUG
using GridT = std::decay_t<decltype(grid)>;
using ValueType = typename GridT::ValueType;
BLI_assert(param_cpp_type.size == sizeof(ValueType));
# endif
const auto &tree = grid.tree();
params.add_readonly_single_input(GPointer(param_cpp_type, &tree.background()));
});