From cecbd8aef12bcca1312002d0cc724a164fd9c851 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Thu, 11 Jan 2024 12:31:52 +0100 Subject: [PATCH] Fix compare of styles to accept not exactly same floats value for style --- src/slic3r/Utils/EmbossStyleManager.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/Utils/EmbossStyleManager.hpp b/src/slic3r/Utils/EmbossStyleManager.hpp index d36f062f48..bce87d04c8 100644 --- a/src/slic3r/Utils/EmbossStyleManager.hpp +++ b/src/slic3r/Utils/EmbossStyleManager.hpp @@ -213,8 +213,8 @@ public: { return EmbossStyle::operator==(other) && projection == other.projection && - distance == other.distance && - angle == other.angle; + is_approx(distance, other.distance) && + is_approx(angle, other.angle); } // cache for view font name with maximal width in imgui