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
This commit is contained in:
Jacques Lucke
2023-06-21 16:05:47 +02:00
parent ff528626f4
commit 571aaa0e92

View File

@@ -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;
}