Fix T79769, T79768: crash tweaking volume settings with Cycles viewport render
Refitting the BVH does not work in this case, it needs to be fully rebuilt.
This commit is contained in:
parent
cb578ca104
commit
690d76c624
Notes:
blender-bot
2023-02-14 05:53:42 +01:00
Referenced by issue #79768, Viewport shading in Cycles rendered mode and multiple changes in VDB Clipping causes crash Referenced by issue #79769, Viewport shading in Cycles rendered mode with VDB object in scene and change VDB cache frame causes crash. (Blender 2.90.0 Beta)
|
@ -540,6 +540,7 @@ void GeometryManager::create_volume_mesh(Mesh *mesh, Progress &progress)
|
|||
mesh->clear(true);
|
||||
mesh->reserve_mesh(vertices.size(), indices.size() / 3);
|
||||
mesh->used_shaders.push_back(volume_shader);
|
||||
mesh->need_update_rebuild = true;
|
||||
|
||||
for (size_t i = 0; i < vertices.size(); ++i) {
|
||||
mesh->add_vertex(vertices[i]);
|
||||
|
|
Loading…
Reference in New Issue