Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-10-12 17:54:17 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-10-12 17:56:41 +0300
commit0d3e192660bfa231aacf80d3e5a3d750155798ea (patch)
tree962f1d06a5e1d5d88bd37fb488dec3c873e47b8d /intern
parentc68a2a722d2f4d6fbfabfa5d8e255de9ef59648d (diff)
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.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/render/geometry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/geometry.cpp b/intern/cycles/render/geometry.cpp
index d96dc15f400..455959512fd 100644
--- a/intern/cycles/render/geometry.cpp
+++ b/intern/cycles/render/geometry.cpp
@@ -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");