diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-03-19 21:50:34 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-03-19 22:02:33 +0300 |
commit | 4b74b35322f247ce75251e941cfed6610a0477e8 (patch) | |
tree | 9bbe25f470f671b20141e8d7596990139aa3d41f /intern/cycles/render/attribute.cpp | |
parent | 12b621059a6f1337e8ae8fdd9533e7808225e71e (diff) |
Fix Cycles crash in Windows debug mode with volumes
Diffstat (limited to 'intern/cycles/render/attribute.cpp')
-rw-r--r-- | intern/cycles/render/attribute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/attribute.cpp b/intern/cycles/render/attribute.cpp index a3d3c1c2bda..4c26d5e8365 100644 --- a/intern/cycles/render/attribute.cpp +++ b/intern/cycles/render/attribute.cpp @@ -48,7 +48,7 @@ Attribute::Attribute( Attribute::~Attribute() { /* For voxel data, we need to free the image handle. */ - if (element == ATTR_ELEMENT_VOXEL) { + if (element == ATTR_ELEMENT_VOXEL && buffer.size()) { ImageHandle &handle = data_voxel(); handle.~ImageHandle(); } |