mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-05 15:50:48 +08:00
Recalculate text lines after change text direction
This commit is contained in:
parent
006c1e6f56
commit
7df988dd2d
@ -3406,8 +3406,11 @@ void GLGizmoEmboss::draw_advanced()
|
|||||||
const Camera &cam = wxGetApp().plater()->get_camera();
|
const Camera &cam = wxGetApp().plater()->get_camera();
|
||||||
const FontProp &prop = m_style_manager.get_font_prop();
|
const FontProp &prop = m_style_manager.get_font_prop();
|
||||||
if (priv::apply_camera_dir(cam, m_parent, m_keep_up) &&
|
if (priv::apply_camera_dir(cam, m_parent, m_keep_up) &&
|
||||||
(prop.use_surface || prop.per_glyph))
|
(prop.use_surface || prop.per_glyph)){
|
||||||
|
if (prop.per_glyph)
|
||||||
|
reinit_text_lines();
|
||||||
process();
|
process();
|
||||||
|
}
|
||||||
} else if (ImGui::IsItemHovered()) {
|
} else if (ImGui::IsItemHovered()) {
|
||||||
ImGui::SetTooltip("%s", _u8L("Orient the text towards the camera.").c_str());
|
ImGui::SetTooltip("%s", _u8L("Orient the text towards the camera.").c_str());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user