Fix #106776: Volume cube won't render in Cycles #107551

Merged
Erik Abrahamsson merged 1 commits from erik85/blender:cycles-vol-empty-grid into main 2023-05-02 20:14:04 +02:00

1 Commits

Author SHA1 Message Date
Erik Abrahamsson 31e61f84a6 Fix #106776: Volume cube won't render in Cycles
In some cases the Geometry Nodes Volume Cube generates
a Volume grid that doesn't contain any leaf nodes. This can happen
when only tiles are needed to represent the volume.

This PR changes the `empty_grid` check function to also check if there
are any active tiles in the grid before returning `true`.
2023-05-02 17:37:43 +02:00