From 53bfb6bed32f79c5f29b5ce1491e74f9c322e7f1 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 10 Feb 2020 08:24:39 +0100 Subject: [PATCH] Hot fix of Object disappears when wipe to object turned on #3637 which is a regression of an optimization 3e0690b37bff4af00015a3b393c39a129ab0d1cc With the optimization disabled, the G-code generator will not be slower than PrusaSlicer 2.1.1. I am leaving the code there to mark for further optimization opportunities. --- src/libslic3r/GCode.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 665f42d67..c4c81ff25 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -2123,7 +2123,12 @@ void GCode::process_layer( // Let's recover vector of extruder overrides: const WipingExtrusions::ExtruderPerCopy *entity_overrides = nullptr; - if (is_anything_overridden) { + // see GH issue #3637: Object disappears when wipe to object turned on + //FIXME Vojtec With the optimization disabled, the G-code generator will not be slower + // than PrusaSlicer 2.1.1. I am leaving the code there to mark for further optimization opportunities. + //if (is_anything_overridden) + if (true) + { printing_extruders.clear(); if (! layer_tools.has_extruder(correct_extruder_id)) { // this entity is not overridden, but its extruder is not in layer_tools - we'll print it