From c7b247a118e302a3afc6473797e53b6af28b69e2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 25 Sep 2022 18:30:50 +1000 Subject: Cleanup: replace static_casts with functional casts for numeric types --- source/blender/modifiers/intern/MOD_volume_displace.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/modifiers') diff --git a/source/blender/modifiers/intern/MOD_volume_displace.cc b/source/blender/modifiers/intern/MOD_volume_displace.cc index d9b94d79348..f5a4b98a53e 100644 --- a/source/blender/modifiers/intern/MOD_volume_displace.cc +++ b/source/blender/modifiers/intern/MOD_volume_displace.cc @@ -213,7 +213,7 @@ struct DisplaceGridOp { const float sample_radius = vdmd.texture_sample_radius * std::abs(vdmd.strength) / max_voxel_side_length / 2.0f; openvdb::tools::dilateActiveValues(temp_grid->tree(), - static_cast(std::ceil(sample_radius)), + int(std::ceil(sample_radius)), openvdb::tools::NN_FACE_EDGE, openvdb::tools::EXPAND_TILES); -- cgit v1.2.3