mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 07:56:24 -06:00
FIX: wipe does not show when raft layers is not zero
Change-Id: I5c1cf1a3003aabd35b4a91073bc950fe772dbb00 (cherry picked from commit e3202e8bf2b40688ffc741cb9f1d87ec591a77f3)
This commit is contained in:
parent
b94271c750
commit
321785e82e
1 changed files with 8 additions and 2 deletions
|
@ -1152,6 +1152,7 @@ std::vector<int> PartPlate::get_extruders(bool conside_custom_gcode) const
|
||||||
int glb_support_intf_extr = glb_config.opt_int("support_interface_filament");
|
int glb_support_intf_extr = glb_config.opt_int("support_interface_filament");
|
||||||
int glb_support_extr = glb_config.opt_int("support_filament");
|
int glb_support_extr = glb_config.opt_int("support_filament");
|
||||||
bool glb_support = glb_config.opt_bool("enable_support");
|
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++) {
|
for (int obj_idx = 0; obj_idx < m_model->objects.size(); obj_idx++) {
|
||||||
if (!contain_instance_totally(obj_idx, 0))
|
if (!contain_instance_totally(obj_idx, 0))
|
||||||
|
@ -1165,8 +1166,13 @@ std::vector<int> PartPlate::get_extruders(bool conside_custom_gcode) const
|
||||||
|
|
||||||
bool obj_support = false;
|
bool obj_support = false;
|
||||||
const ConfigOption* obj_support_opt = mo->config.option("enable_support");
|
const ConfigOption* obj_support_opt = mo->config.option("enable_support");
|
||||||
if (obj_support_opt != nullptr)
|
const ConfigOption *obj_raft_opt = mo->config.option("raft_layers");
|
||||||
obj_support = obj_support_opt->getBool();
|
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
|
else
|
||||||
obj_support = glb_support;
|
obj_support = glb_support;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue