mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 11:15:56 +08:00
Fix for issue 44
This commit is contained in:
parent
8e1c08dac3
commit
8396b13902
@ -1427,16 +1427,24 @@ void GLGizmoEmboss::draw_font_list()
|
|||||||
|
|
||||||
void GLGizmoEmboss::draw_model_type()
|
void GLGizmoEmboss::draw_model_type()
|
||||||
{
|
{
|
||||||
|
ImGui::Text("%s", m_gui_cfg->translations.type.c_str());
|
||||||
|
ImGui::SameLine(m_gui_cfg->style_offset);
|
||||||
|
|
||||||
|
if (m_volume == nullptr) {
|
||||||
|
ImGui::Text("[ %s ]", _u8L("No text").c_str());
|
||||||
|
if (ImGui::IsItemHovered())
|
||||||
|
ImGui::SetTooltip("%s", _u8L("First select text to change type.").c_str());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::optional<ModelVolumeType> new_type;
|
std::optional<ModelVolumeType> new_type;
|
||||||
ModelVolumeType modifier = ModelVolumeType::PARAMETER_MODIFIER;
|
ModelVolumeType modifier = ModelVolumeType::PARAMETER_MODIFIER;
|
||||||
ModelVolumeType negative = ModelVolumeType::NEGATIVE_VOLUME;
|
ModelVolumeType negative = ModelVolumeType::NEGATIVE_VOLUME;
|
||||||
ModelVolumeType part = ModelVolumeType::MODEL_PART;
|
ModelVolumeType part = ModelVolumeType::MODEL_PART;
|
||||||
ModelVolumeType type = (m_volume != nullptr) ? m_volume->type() :
|
ModelVolumeType type = m_volume->type();
|
||||||
ModelVolumeType::INVALID;
|
|
||||||
|
|
||||||
bool is_last_solid_part = is_text_object(m_volume);
|
bool is_last_solid_part = is_text_object(m_volume);
|
||||||
ImGui::Text("%s", m_gui_cfg->translations.type.c_str());
|
|
||||||
ImGui::SameLine(m_gui_cfg->style_offset);
|
|
||||||
if (type == part) {
|
if (type == part) {
|
||||||
draw_icon(IconType::part, IconState::hovered);
|
draw_icon(IconType::part, IconState::hovered);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user