From 546009a8e9c07c93d9f2fb29170b1dca48304f07 Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Thu, 3 Feb 2022 12:45:39 +0100 Subject: [PATCH] Fix Mac build --- src/slic3r/Utils/WxFontUtils.cpp | 3 ++- tests/libslic3r/test_quadric_edge_collapse.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slic3r/Utils/WxFontUtils.cpp b/src/slic3r/Utils/WxFontUtils.cpp index f7845bed5..d9e42742f 100644 --- a/src/slic3r/Utils/WxFontUtils.cpp +++ b/src/slic3r/Utils/WxFontUtils.cpp @@ -2,8 +2,9 @@ #include "libslic3r/MapUtils.hpp" #if defined(__APPLE__) -#include #include +#include +#include // wxNativeFontInfo #include #elif defined(__linux__) #include "slic3r/Utils/FontConfigHelp.hpp" diff --git a/tests/libslic3r/test_quadric_edge_collapse.cpp b/tests/libslic3r/test_quadric_edge_collapse.cpp index 3ae44d561..f9b014375 100644 --- a/tests/libslic3r/test_quadric_edge_collapse.cpp +++ b/tests/libslic3r/test_quadric_edge_collapse.cpp @@ -246,7 +246,7 @@ TEST_CASE("Simplify frog_legs.obj to 5% by IGL/qslim", "[]") TriangleMesh mesh = load_model(obj_filename); REQUIRE_FALSE(mesh.empty()); indexed_triangle_set &its = mesh.its; - double original_volume = its_volume(its); + //double original_volume = its_volume(its); uint32_t wanted_count = its.indices.size() * 0.05; Eigen::MatrixXd V(its.vertices.size(), 3);