Fix skew real time preview

This commit is contained in:
Filip Sykala - NTB T15p 2024-05-17 10:55:09 +02:00 committed by Lukas Matena
parent 0e1664be40
commit 117df63061

View File

@ -3098,9 +3098,9 @@ void GLGizmoEmboss::draw_skew()
apply(skew, limits.skew.values);
if (m_job_cancel != nullptr) m_job_cancel->store(true);
const std::optional<float> &volume_skew = m_volume->text_configuration->style.prop.skew;
if (is_approx(skew.value_or(0.f), volume_skew.value_or(0.f))) {
if (!is_approx(skew.value_or(0.f), volume_skew.value_or(0.f))) {
// glyph shape is modified by skew
m_style_manager.clear_glyphs_cache();
m_style_manager.clear_glyphs_cache();
exist_change = true;
}
}