Fix T81551: Cycles crash updating volume with modifiers
The volume bounds mesh was being rebuilt too often, it should only be done when rebuilding the BVH as well, otherwise they can go out of sync.
This commit is contained in:
parent
c68a2a722d
commit
0d3e192660
Notes:
blender-bot
2023-02-14 08:10:10 +01:00
Referenced by issue #81551, Cycles crash when updating volume
|
@ -1129,7 +1129,7 @@ void GeometryManager::device_update_preprocess(Device *device, Scene *scene, Pro
|
|||
}
|
||||
}
|
||||
|
||||
if (need_update && geom->type == Geometry::VOLUME) {
|
||||
if (geom->need_update_rebuild && geom->type == Geometry::VOLUME) {
|
||||
/* Create volume meshes if there is voxel data. */
|
||||
if (!volume_images_updated) {
|
||||
progress.set_status("Updating Meshes Volume Bounds");
|
||||
|
|
Loading…
Reference in New Issue