forked from bartvdbraak/blender
Fix T83300: constant scene refreshing in Cycles with empty volumes
This infinite loop is caused by a conflict between the volume mesh creation which unintentionally clears the shaders before early exiting when no grid is found, and the Blender exporter which adds back the shaders causing us to reupdate as the shaders changed. To fix this simply preserve the shaders on the Volume node.
This commit is contained in:
parent
67353ae630
commit
84451f89f5
@ -528,8 +528,10 @@ void GeometryManager::create_volume_mesh(Volume *volume, Progress &progress)
|
||||
}
|
||||
|
||||
/* Clear existing volume mesh, done here in case we early out due to
|
||||
* empty grid or missing volume shader. */
|
||||
volume->clear();
|
||||
* empty grid or missing volume shader.
|
||||
* Also keep the shaders to avoid infinite loops when synchronizing, as this will tag the shaders
|
||||
* as having changed. */
|
||||
volume->clear(true);
|
||||
volume->need_update_rebuild = true;
|
||||
|
||||
if (!volume_shader) {
|
||||
|
Loading…
Reference in New Issue
Block a user