mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-18 21:20:57 +00:00
Fix crash when selecting or moving wipe tower (#13243)
This commit is contained in:
1 parent
84011e232e
commit
43da0f7d9a
1 file changed
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user