Fix T76468: volume sequence render not using correct frame in renders
Render datablocks were copying state from original datablocks, where the frame number and loaded volume grids were out of sync.
This commit is contained in:
parent
d8c3aad800
commit
5473f0c49d
Notes:
blender-bot
2023-02-13 22:36:37 +01:00
Referenced by issue #76468, VDB cache not updated overtime when you use F12 to render. But fine in viewport. (2.83 beta)
|
@ -815,7 +815,10 @@ void BKE_volume_eval_geometry(struct Depsgraph *depsgraph, Volume *volume)
|
|||
/* Flush back to original. */
|
||||
if (DEG_is_active(depsgraph)) {
|
||||
Volume *volume_orig = (Volume *)DEG_get_original_id(&volume->id);
|
||||
volume_orig->runtime.frame = volume->runtime.frame;
|
||||
if (volume_orig->runtime.frame != volume->runtime.frame) {
|
||||
BKE_volume_unload(volume_orig);
|
||||
volume_orig->runtime.frame = volume->runtime.frame;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue