mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-08 11:29:10 +08:00
Fixed a crash when trying to delete a wipe tower with the delete key.
This commit is contained in:
parent
bb5caf2e08
commit
76c922bf9a
@ -982,6 +982,10 @@ void ObjectList::del_instances_from_object(const int obj_idx)
|
||||
|
||||
bool ObjectList::del_subobject_from_object(const int obj_idx, const int idx, const int type)
|
||||
{
|
||||
if (obj_idx == 1000)
|
||||
// Cannot delete a wipe tower.
|
||||
return false;
|
||||
|
||||
if (type == itVolume) {
|
||||
const auto volume = (*m_objects)[obj_idx]->volumes[idx];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user