diff options
author | bubnikv <bubnikv@gmail.com> | 2017-01-11 16:37:53 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-01-11 16:37:53 +0300 |
commit | c632d08550601b0f6ba646c08076137b924be8b0 (patch) | |
tree | a58cd80ddaa1e2436facc3844060caa37794c3ca | |
parent | 87964eb57acc18285ae31aced6ec3054ccdf5a52 (diff) |
Only compile debug output functions for SupportGenerator if SLIC3R_DEBUG is enabled.
-rw-r--r-- | xs/src/libslic3r/SupportMaterial.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xs/src/libslic3r/SupportMaterial.cpp b/xs/src/libslic3r/SupportMaterial.cpp index e9c555541..b99a50a9e 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), |