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.
This commit is contained in:
parent
0b9945b632
commit
9ef5fd75ba
@ -2035,16 +2035,16 @@ void Plater::priv::remove(size_t obj_idx)
|
|||||||
// Delete object from Sidebar list
|
// Delete object from Sidebar list
|
||||||
sidebar->obj_list()->delete_object_from_list(obj_idx);
|
sidebar->obj_list()->delete_object_from_list(obj_idx);
|
||||||
|
|
||||||
object_list_changed();
|
|
||||||
update();
|
update();
|
||||||
|
object_list_changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Plater::priv::delete_object_from_model(size_t obj_idx)
|
void Plater::priv::delete_object_from_model(size_t obj_idx)
|
||||||
{
|
{
|
||||||
model.delete_object(obj_idx);
|
model.delete_object(obj_idx);
|
||||||
object_list_changed();
|
|
||||||
update();
|
update();
|
||||||
|
object_list_changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Plater::priv::reset()
|
void Plater::priv::reset()
|
||||||
@ -2063,8 +2063,8 @@ void Plater::priv::reset()
|
|||||||
|
|
||||||
// Delete all objects from list on c++ side
|
// Delete all objects from list on c++ side
|
||||||
sidebar->obj_list()->delete_all_objects_from_list();
|
sidebar->obj_list()->delete_all_objects_from_list();
|
||||||
object_list_changed();
|
|
||||||
update();
|
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
|
// 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);
|
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)
|
if (obj_idx < 0)
|
||||||
return;
|
return;
|
||||||
fix_model_by_win10_sdk_gui(*model.objects[obj_idx], vol_idx);
|
fix_model_by_win10_sdk_gui(*model.objects[obj_idx], vol_idx);
|
||||||
this->object_list_changed();
|
|
||||||
this->update();
|
this->update();
|
||||||
|
this->object_list_changed();
|
||||||
this->schedule_background_process();
|
this->schedule_background_process();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user