diff options
Diffstat (limited to 'intern/cycles/render/mesh.cpp')
-rw-r--r-- | intern/cycles/render/mesh.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/render/mesh.cpp b/intern/cycles/render/mesh.cpp index 23b855acdc9..47d24970949 100644 --- a/intern/cycles/render/mesh.cpp +++ b/intern/cycles/render/mesh.cpp @@ -561,8 +561,9 @@ void Mesh::clear(bool preserve_voxel_data) subd_attributes.clear(); attributes.clear(preserve_voxel_data); + used_shaders.clear(); + if(!preserve_voxel_data) { - used_shaders.clear(); geometry_flags = GEOMETRY_NONE; } |