From 321785e82e7d4203769f8c3fd4a0e02e9bc03256 Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Fri, 13 Jan 2023 09:35:24 +0800 Subject: [PATCH] FIX: wipe does not show when raft layers is not zero Change-Id: I5c1cf1a3003aabd35b4a91073bc950fe772dbb00 (cherry picked from commit e3202e8bf2b40688ffc741cb9f1d87ec591a77f3) --- src/slic3r/GUI/PartPlate.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/PartPlate.cpp b/src/slic3r/GUI/PartPlate.cpp index e518bcd43e..466c8035af 100644 --- a/src/slic3r/GUI/PartPlate.cpp +++ b/src/slic3r/GUI/PartPlate.cpp @@ -1152,6 +1152,7 @@ std::vector PartPlate::get_extruders(bool conside_custom_gcode) const int glb_support_intf_extr = glb_config.opt_int("support_interface_filament"); int glb_support_extr = glb_config.opt_int("support_filament"); bool glb_support = glb_config.opt_bool("enable_support"); + glb_support |= glb_config.opt_int("raft_layers") > 0; for (int obj_idx = 0; obj_idx < m_model->objects.size(); obj_idx++) { if (!contain_instance_totally(obj_idx, 0)) @@ -1165,8 +1166,13 @@ std::vector PartPlate::get_extruders(bool conside_custom_gcode) const bool obj_support = false; const ConfigOption* obj_support_opt = mo->config.option("enable_support"); - if (obj_support_opt != nullptr) - obj_support = obj_support_opt->getBool(); + const ConfigOption *obj_raft_opt = mo->config.option("raft_layers"); + if (obj_support_opt != nullptr || obj_raft_opt != nullptr) { + if (obj_support_opt != nullptr) + obj_support = obj_support_opt->getBool(); + if (obj_raft_opt != nullptr) + obj_support |= obj_raft_opt->getInt() > 0; + } else obj_support = glb_support;