From 9ef5fd75ba1e6f2c54ee3ec24a4a7baea5b8e6e3 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 8 May 2019 10:37:45 +0200 Subject: [PATCH] Fixed a crash on deleting an object from the platter due to the object_list_changed() function calling GLVolumeCollection::check_outside_state() on GLVolumes, which were already deleted. --- src/slic3r/GUI/Plater.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 4aa1ce80f5..c5643f4226 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -2035,16 +2035,16 @@ void Plater::priv::remove(size_t obj_idx) // Delete object from Sidebar list sidebar->obj_list()->delete_object_from_list(obj_idx); - object_list_changed(); update(); + object_list_changed(); } void Plater::priv::delete_object_from_model(size_t obj_idx) { model.delete_object(obj_idx); - object_list_changed(); update(); + object_list_changed(); } void Plater::priv::reset() @@ -2063,8 +2063,8 @@ void Plater::priv::reset() // Delete all objects from list on c++ side sidebar->obj_list()->delete_all_objects_from_list(); - object_list_changed(); update(); + object_list_changed(); // The hiding of the slicing results, if shown, is not taken care by the background process, so we do it here this->sidebar->show_sliced_info_sizer(false); @@ -2557,8 +2557,8 @@ void Plater::priv::fix_through_netfabb(const int obj_idx, const int vol_idx/* = if (obj_idx < 0) return; fix_model_by_win10_sdk_gui(*model.objects[obj_idx], vol_idx); - this->object_list_changed(); this->update(); + this->object_list_changed(); this->schedule_background_process(); }