From c632d08550601b0f6ba646c08076137b924be8b0 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 11 Jan 2017 14:37:53 +0100 Subject: [PATCH] Only compile debug output functions for SupportGenerator if SLIC3R_DEBUG is enabled. --- xs/src/libslic3r/SupportMaterial.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xs/src/libslic3r/SupportMaterial.cpp b/xs/src/libslic3r/SupportMaterial.cpp index e9c5555419..b99a50a9e4 100644 --- a/xs/src/libslic3r/SupportMaterial.cpp +++ b/xs/src/libslic3r/SupportMaterial.cpp @@ -35,7 +35,7 @@ namespace Slic3r { //#define SUPPORT_SURFACES_OFFSET_PARAMETERS ClipperLib::jtMiter, 1.5 #define SUPPORT_SURFACES_OFFSET_PARAMETERS ClipperLib::jtSquare, 0. - +#ifdef SLIC3R_DEBUG const char* support_surface_type_to_color_name(const PrintObjectSupportMaterial::SupporLayerType surface_type) { switch (surface_type) { @@ -101,6 +101,7 @@ void export_print_z_polygons_to_svg(const char *path, PrintObjectSupportMaterial export_support_surface_type_legend_to_svg(svg, legend_pos); svg.Close(); } +#endif /* SLIC3R_DEBUG */ PrintObjectSupportMaterial::PrintObjectSupportMaterial(const PrintObject *object, const SlicingParameters &slicing_params) : m_object (object),