From 30c1be40dabf3b395f03cf99cd34fee5d5c77857 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 17 Oct 2016 09:27:20 +0200 Subject: [PATCH] Fixes of SupportMaterial.cpp --- 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 5d4d0f34c..c7266fa37 100644 --- a/xs/src/libslic3r/SupportMaterial.cpp +++ b/xs/src/libslic3r/SupportMaterial.cpp @@ -8,6 +8,7 @@ #include #include +#include namespace Slic3r { @@ -508,7 +509,7 @@ PrintSupportMaterial::MyLayersPtr PrintSupportMaterial::bottom_contact_layers( // Place a bridge flow interface layer over the top surface. m_interface_flow.nozzle_diameter; layer_new.print_z = layer.print_z + layer_new.height + - (m_soluble_interface ? 0 : m_object_config->support_material_contact_distance); + (m_soluble_interface ? 0. : m_object_config->support_material_contact_distance.value); layer_new.bottom_z = layer.print_z; layer_new.idx_object_layer_below = layer_id; layer_new.bridging = ! m_soluble_interface;