Fix crash when selecting or moving wipe tower (#13243)

This commit is contained in:
Eyal Levin
2026-04-18 09:42:54 +03:00
committed by GitHub
parent 84011e232e
commit 43da0f7d9a

View File

@@ -600,7 +600,9 @@ void Selection::set_printable(bool printable)
}
bool Selection::get_auto_drop() const {
if (!m_valid)
// The wipe tower is not a ModelObject and has no per-instance auto_drop;
// return the default to avoid indexing m_model->objects with its synthetic id.
if (!m_valid || is_wipe_tower())
return true;
std::set<std::pair<int, int>> instances_idxs;