Fixed a crash on deleting objects due to the ObjectList accessing

released data before the selection was updated on the GLScene.
This commit is contained in:
bubnikv 2019-05-14 16:37:32 +02:00
parent 8140d043c8
commit d54e14a41d
2 changed files with 8 additions and 9 deletions
src/libslic3r

View file

@ -1521,7 +1521,8 @@ stl_stats ModelObject::get_object_stl_stats() const
if (this->volumes.size() == 1)
return this->volumes[0]->mesh.stl.stats;
stl_stats full_stats = this->volumes[0]->mesh.stl.stats;
stl_stats full_stats;
memset(&full_stats, 0, sizeof(stl_stats));
// fill full_stats from all objet's meshes
for (ModelVolume* volume : this->volumes)