mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 06:35:56 +08:00
Don't allow part type change to modifier type in SLA mode
This commit is contained in:
parent
440df505b4
commit
bb82ce90c9
@ -1707,17 +1707,19 @@ void GLGizmoEmboss::draw_model_type()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::SameLine();
|
if (wxGetApp().plater()->printer_technology() != ptSLA) {
|
||||||
if (type == modifier) {
|
ImGui::SameLine();
|
||||||
draw_icon(IconType::modifier, IconState::hovered);
|
if (type == modifier) {
|
||||||
} else {
|
draw_icon(IconType::modifier, IconState::hovered);
|
||||||
if(draw_button(IconType::modifier, is_last_solid_part))
|
} else {
|
||||||
new_type = modifier;
|
if(draw_button(IconType::modifier, is_last_solid_part))
|
||||||
if (ImGui::IsItemHovered()) {
|
new_type = modifier;
|
||||||
if(is_last_solid_part)
|
if (ImGui::IsItemHovered()) {
|
||||||
ImGui::SetTooltip("%s", _u8L("You can't change a type of the last solid part of the object.").c_str());
|
if(is_last_solid_part)
|
||||||
else if (type != modifier)
|
ImGui::SetTooltip("%s", _u8L("You can't change a type of the last solid part of the object.").c_str());
|
||||||
ImGui::SetTooltip("%s", _u8L("Click to change part type into modifier.").c_str());
|
else if (type != modifier)
|
||||||
|
ImGui::SetTooltip("%s", _u8L("Click to change part type into modifier.").c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user