From cbb5aa0a260fb8f4d5f8c4791c965afc57d1bd0c Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 25 Jun 2024 22:26:11 +0200 Subject: [PATCH] Follow-up https://github.com/Prusa-Development/PrusaSlicerPrivate/commit/0237acb38fbdd4055c80e49f8cbe544a08cf85a0 - Fixed toolbar scale --- src/slic3r/GUI/GLCanvas3D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index c174dd3ca1..225dab7582 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -6007,7 +6007,7 @@ bool GLCanvas3D::check_toolbar_icon_size(float init_scale, float& new_scale_to_s new_scale_to_save = std::min(new_scale / max_scale, 1.f); if (is_custom && new_scale_to_save > init_scale) - return false; + return true; // we need to save new value, so return true if (is_approx(init_scale, new_scale_to_save, 0.015f) || counter == 0) return true; @@ -6015,7 +6015,7 @@ bool GLCanvas3D::check_toolbar_icon_size(float init_scale, float& new_scale_to_s // scale is changed by 1.5% and more init_scale = new_scale_to_save; counter--; - return check_toolbar_icon_size(init_scale, new_scale_to_save, counter); + return check_toolbar_icon_size(init_scale, new_scale_to_save, is_custom, counter); }