From ec446edb3684c958a9bffdb00b023cc93cf371c9 Mon Sep 17 00:00:00 2001 From: QIDI TECH <893239786@qq.com> Date: Thu, 1 Feb 2024 14:27:38 +0800 Subject: [PATCH] Fixed abnormal digital board height during PA calibration --- src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index 96c8e71..834d1b8 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -329,6 +329,9 @@ void GLGizmoEmboss::create_volume(ModelVolumeType volume_type, const Vec2d &mous m_style_manager.get_font_prop().size_in_mm = 7; #endif + DynamicPrintConfig *print_config = &wxGetApp().preset_bundle->prints.get_edited_preset().config; + m_style_manager.get_style().projection.depth = print_config->get_abs_value("layer_height"); + DataBasePtr base = create_emboss_data_base(str, m_style_manager, m_text_lines, m_parent.get_selection(), volume_type, m_job_cancel); CreateVolumeParams input = create_input(m_parent, m_style_manager.get_style(), m_raycast_manager, volume_type);