mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-29 12:58:03 +00:00
Fix incorrect early exit for CLI mode no-support preventing parameters from being read
This commit is contained in:
@@ -1757,26 +1757,25 @@ std::vector<int> PartPlate::get_extruders_under_cli(bool conside_custom_gcode, D
|
|||||||
else
|
else
|
||||||
obj_support = glb_support;
|
obj_support = glb_support;
|
||||||
|
|
||||||
if (!obj_support)
|
if (obj_support) {
|
||||||
continue;
|
int obj_support_intf_extr = 0;
|
||||||
|
const ConfigOption* support_intf_extr_opt = object->config.option("support_interface_filament");
|
||||||
|
if (support_intf_extr_opt != nullptr)
|
||||||
|
obj_support_intf_extr = support_intf_extr_opt->getInt();
|
||||||
|
if (obj_support_intf_extr != 0)
|
||||||
|
plate_extruders.push_back(obj_support_intf_extr);
|
||||||
|
else if (glb_support_intf_extr != 0)
|
||||||
|
plate_extruders.push_back(glb_support_intf_extr);
|
||||||
|
|
||||||
int obj_support_intf_extr = 0;
|
int obj_support_extr = 0;
|
||||||
const ConfigOption* support_intf_extr_opt = object->config.option("support_interface_filament");
|
const ConfigOption* support_extr_opt = object->config.option("support_filament");
|
||||||
if (support_intf_extr_opt != nullptr)
|
if (support_extr_opt != nullptr)
|
||||||
obj_support_intf_extr = support_intf_extr_opt->getInt();
|
obj_support_extr = support_extr_opt->getInt();
|
||||||
if (obj_support_intf_extr != 0)
|
if (obj_support_extr != 0)
|
||||||
plate_extruders.push_back(obj_support_intf_extr);
|
plate_extruders.push_back(obj_support_extr);
|
||||||
else if (glb_support_intf_extr != 0)
|
else if (glb_support_extr != 0)
|
||||||
plate_extruders.push_back(glb_support_intf_extr);
|
plate_extruders.push_back(glb_support_extr);
|
||||||
|
}
|
||||||
int obj_support_extr = 0;
|
|
||||||
const ConfigOption* support_extr_opt = object->config.option("support_filament");
|
|
||||||
if (support_extr_opt != nullptr)
|
|
||||||
obj_support_extr = support_extr_opt->getInt();
|
|
||||||
if (obj_support_extr != 0)
|
|
||||||
plate_extruders.push_back(obj_support_extr);
|
|
||||||
else if (glb_support_extr != 0)
|
|
||||||
plate_extruders.push_back(glb_support_extr);
|
|
||||||
|
|
||||||
int obj_outer_wall_extr = 0;
|
int obj_outer_wall_extr = 0;
|
||||||
if (const ConfigOption* wall_opt = object->config.option("outer_wall_filament_id"); wall_opt != nullptr)
|
if (const ConfigOption* wall_opt = object->config.option("outer_wall_filament_id"); wall_opt != nullptr)
|
||||||
|
|||||||
Reference in New Issue
Block a user