diff options
author | Jacques Lucke <jacques@blender.org> | 2020-11-04 15:21:43 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-11-04 15:21:43 +0300 |
commit | cfcdae5549f37198fa8e66ee512f1093764ef022 (patch) | |
tree | f7bb1e019a83c3547eb5d72ea8f9840f5b93cd7d /source/blender/blenkernel | |
parent | ba6977cb8b8125e1fdebb3f876910ceaeadbe103 (diff) |
Fix T82393: Volume to Mesh modifier with sequence fails during rendering
The issue was that the volume for the current frame
might not have been loaded already by the time the
modifier runs.
The solution is simply to make sure that the volume
is loaded. This is similar to the Volume Displace modifier.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/volume.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/volume.cc b/source/blender/blenkernel/intern/volume.cc index 5e6f0bb42ef..87993695486 100644 --- a/source/blender/blenkernel/intern/volume.cc +++ b/source/blender/blenkernel/intern/volume.cc @@ -1154,6 +1154,7 @@ VolumeGrid *BKE_volume_grid_active_get(const Volume *volume) return BKE_volume_grid_get(volume, index); } +/* Tries to find a grid with the given name. Make sure that that the volume has been loaded. */ VolumeGrid *BKE_volume_grid_find(const Volume *volume, const char *name) { int num_grids = BKE_volume_num_grids(volume); |