mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 06:04:01 -06:00
FIX: do not show "Fill bed" option for unprintable objects
Jira: STUDIO-4169 Change-Id: Ia5bb727fa71b99553d0f7365aecf182b0f3cfc34
This commit is contained in:
parent
8bf9c7a5b4
commit
a401ad6045
1 changed files with 2 additions and 1 deletions
|
@ -7377,7 +7377,8 @@ bool Plater::priv::can_increase_instances() const
|
|||
|
||||
int obj_idx = get_selected_object_idx();
|
||||
return (0 <= obj_idx) && (obj_idx < (int)model.objects.size())
|
||||
&& !sidebar->obj_list()->has_selected_cut_object();
|
||||
&& !sidebar->obj_list()->has_selected_cut_object()
|
||||
&& std::all_of(model.objects[obj_idx]->instances.begin(), model.objects[obj_idx]->instances.end(), [](auto& inst) {return inst->printable; });
|
||||
}
|
||||
|
||||
bool Plater::priv::can_decrease_instances() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue