mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 01:49:01 +08:00
Fixed a crash when selection wipe tower and using add instance function:
this was between 2.6.0-alpha3 and 2.6.0-alpha4 in 4d5b85e.
This commit is contained in:
parent
e46891fa8c
commit
7df4cfb453
@ -4779,7 +4779,7 @@ bool Plater::priv::can_increase_instances() const
|
||||
if (q->canvas3D()->get_gizmos_manager().get_current_type() == GLGizmosManager::Emboss) return false;
|
||||
|
||||
const auto obj_idxs = get_selection().get_object_idxs();
|
||||
return !obj_idxs.empty() && !sidebar->obj_list()->has_selected_cut_object();
|
||||
return !obj_idxs.empty() && !get_selection().is_wipe_tower() && !sidebar->obj_list()->has_selected_cut_object();
|
||||
}
|
||||
|
||||
bool Plater::priv::can_decrease_instances(int obj_idx /*= -1*/) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user