mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
Fix crash when selecting or moving wipe tower (#13243)
This commit is contained in:
@@ -600,7 +600,9 @@ void Selection::set_printable(bool printable)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Selection::get_auto_drop() const {
|
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;
|
return true;
|
||||||
|
|
||||||
std::set<std::pair<int, int>> instances_idxs;
|
std::set<std::pair<int, int>> instances_idxs;
|
||||||
|
|||||||
Reference in New Issue
Block a user