From 571aaa0e928426a2c753ea6e97be22ea79534c3a Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 21 Jun 2023 16:05:47 +0200 Subject: [PATCH] Fix: zero interior band width leads to no volume output The input only determines the gradient of the volume density at its surface. Using zero there should not break it. Pull Request: https://projects.blender.org/blender/blender/pulls/109208 --- source/blender/geometry/intern/mesh_to_volume.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/geometry/intern/mesh_to_volume.cc b/source/blender/geometry/intern/mesh_to_volume.cc index 2f41c9ba29c..4230eb16974 100644 --- a/source/blender/geometry/intern/mesh_to_volume.cc +++ b/source/blender/geometry/intern/mesh_to_volume.cc @@ -111,7 +111,7 @@ static openvdb::FloatGrid::Ptr mesh_to_fog_volume_grid( const float interior_band_width, const float density) { - if (voxel_size < 1e-5f || interior_band_width <= 0.0f) { + if (voxel_size < 1e-5f) { return nullptr; }