From f7b77b29b65058eb58d7d6706594a1e9d77647ce Mon Sep 17 00:00:00 2001 From: supermerill Date: Wed, 31 Oct 2018 14:49:17 +0100 Subject: [PATCH] debug support generation from merge. --- xs/src/libslic3r/SupportMaterial.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xs/src/libslic3r/SupportMaterial.cpp b/xs/src/libslic3r/SupportMaterial.cpp index 75b14f0d8..404f3e2c9 100644 --- a/xs/src/libslic3r/SupportMaterial.cpp +++ b/xs/src/libslic3r/SupportMaterial.cpp @@ -3263,13 +3263,13 @@ void PrintObjectSupportMaterial::generate_toolpaths( } layer_cache.overlaps.reserve(4); - if (! bottom_contact_layer.empty()) + if (!bottom_contact_layer.empty() && !bottom_contact_layer.extrusions.empty()) layer_cache.overlaps.push_back(&bottom_contact_layer); - if (! top_contact_layer.empty()) + if (!top_contact_layer.empty() && !top_contact_layer.extrusions.empty()) layer_cache.overlaps.push_back(&top_contact_layer); - if (! interface_layer.empty()) + if (!interface_layer.empty() && !interface_layer.extrusions.empty()) layer_cache.overlaps.push_back(&interface_layer); - if (! base_layer.empty()) + if (!base_layer.empty() && !base_layer.extrusions.empty()) layer_cache.overlaps.push_back(&base_layer); // Sort the layers with the same print_z coordinate by their heights, thickest first. std::sort(layer_cache.overlaps.begin(), layer_cache.overlaps.end(), [](const LayerCacheItem &lc1, const LayerCacheItem &lc2) { return lc1.layer_extruded->layer->height > lc2.layer_extruded->layer->height; });