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:
Lukas Matena 2023-03-23 12:27:07 +01:00
parent e46891fa8c
commit 7df4cfb453

View file

@ -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