Recalculate text lines after change text direction

This commit is contained in:
Filip Sykala - NTB T15p 2023-08-07 17:38:31 +02:00
parent 006c1e6f56
commit 7df988dd2d

View File

@ -3406,8 +3406,11 @@ void GLGizmoEmboss::draw_advanced()
const Camera &cam = wxGetApp().plater()->get_camera();
const FontProp &prop = m_style_manager.get_font_prop();
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();
}
} else if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("%s", _u8L("Orient the text towards the camera.").c_str());
}