From 76231632a5894c4733e33ad0fbd0e4c13f470d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=A0ach?= Date: Mon, 8 Jul 2024 11:39:05 +0200 Subject: [PATCH] Fix mac include on in WxFontUtils, fix missing include in debug mode --- src/libslic3r/Arachne/SkeletalTrapezoidation.cpp | 4 ++++ src/slic3r/Utils/WxFontUtils.cpp | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/Arachne/SkeletalTrapezoidation.cpp b/src/libslic3r/Arachne/SkeletalTrapezoidation.cpp index 3a2c5f507e..6d95241b03 100644 --- a/src/libslic3r/Arachne/SkeletalTrapezoidation.cpp +++ b/src/libslic3r/Arachne/SkeletalTrapezoidation.cpp @@ -21,6 +21,10 @@ #include "libslic3r/Arachne/utils/ExtrusionJunction.hpp" #include "libslic3r/Arachne/utils/ExtrusionLine.hpp" +#ifndef NDEBUG + #include "libslic3r/EdgeGrid.hpp" +#endif + #define SKELETAL_TRAPEZOIDATION_BEAD_SEARCH_MAX 1000 //A limit to how long it'll keep searching for adjacent beads. Increasing will re-use beadings more often (saving performance), but search longer for beading (costing performance). namespace Slic3r::Arachne diff --git a/src/slic3r/Utils/WxFontUtils.cpp b/src/slic3r/Utils/WxFontUtils.cpp index 24e61bde1b..d99e6b09f2 100644 --- a/src/slic3r/Utils/WxFontUtils.cpp +++ b/src/slic3r/Utils/WxFontUtils.cpp @@ -10,6 +10,7 @@ #include #include +#include "libslic3r/Utils.hpp" // IWYU pragma: keep #include "libslic3r/Emboss.hpp" #include "libslic3r/Exception.hpp" @@ -357,4 +358,4 @@ std::unique_ptr WxFontUtils::set_bold(wxFont &font, const Embo // There is NO bold font by wx font.SetWeight(orig_weight); return nullptr; -} \ No newline at end of file +}