mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-17 03:25:58 +08:00
Fix issue #92 disallow text as modifier in simple mode
This commit is contained in:
parent
8197322249
commit
ac7c611755
@ -2023,13 +2023,16 @@ void GLGizmoEmboss::draw_model_type()
|
|||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|
||||||
if (ImGui::RadioButton(_u8L("Modifier").c_str(), type == modifier))
|
// In simple mode are not modifiers
|
||||||
new_type = modifier;
|
if (wxGetApp().get_mode() != ConfigOptionMode::comSimple) {
|
||||||
else if (ImGui::IsItemHovered()) {
|
if (ImGui::RadioButton(_u8L("Modifier").c_str(), type == modifier))
|
||||||
if (is_last_solid_part)
|
new_type = modifier;
|
||||||
ImGui::SetTooltip("%s", last_solid_part_hint.c_str());
|
else if (ImGui::IsItemHovered()) {
|
||||||
else if (type != modifier)
|
if (is_last_solid_part)
|
||||||
ImGui::SetTooltip("%s", _u8L("Click to change part type into modifier.").c_str());
|
ImGui::SetTooltip("%s", last_solid_part_hint.c_str());
|
||||||
|
else if (type != modifier)
|
||||||
|
ImGui::SetTooltip("%s", _u8L("Click to change part type into modifier.").c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_volume != nullptr && new_type.has_value() && !is_last_solid_part) {
|
if (m_volume != nullptr && new_type.has_value() && !is_last_solid_part) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user