Fix issue #92 disallow text as modifier in simple mode

This commit is contained in:
Filip Sykala - NTB T15p 2023-01-10 22:19:23 +01:00
parent 8197322249
commit ac7c611755

View File

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