Fix: Broken build with OpenVDB turned off

Problem with e3a6a2f412.
This commit is contained in:
Hans Goudey 2022-08-29 12:12:16 -05:00
parent 48e1a66af0
commit dff15bb5bf
2 changed files with 3 additions and 2 deletions

View File

@ -1484,7 +1484,7 @@ void BKE_volume_grid_transform_matrix_set(struct VolumeGrid *volume_grid, const
grid->setTransform(std::make_shared<openvdb::math::Transform>(
std::make_shared<openvdb::math::AffineMap>(mat_openvdb)));
#else
UNUSED_VARS(grid, mat);
UNUSED_VARS(volume_grid, mat);
#endif
}
@ -1590,6 +1590,7 @@ bool BKE_volume_grid_determinant_valid(const double determinant)
/* Limit taken from openvdb/math/Maps.h. */
return std::abs(determinant) >= 3.0 * openvdb::math::Tolerance<double>::value();
#else
UNUSED_VARS(determinant);
return true;
#endif
}

View File

@ -128,7 +128,7 @@ static void transform_volume(GeoNodeExecParams &params,
TIP_("Volume scale is lower than permitted by OpenVDB"));
}
#else
UNUSED_VARS(volume, transform, depsgraph);
UNUSED_VARS(params, volume, transform, depsgraph);
#endif
}