mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 00:52:51 +00:00
A new feature "support_material_buildplate_only" implemented.
Also a bug has been fixed for zero interface layers. Before slic3r would put infinite number of interface layers over top surfaces, if the number of interface layers was set to zero.
This commit is contained in:
@@ -1092,6 +1092,13 @@ PrintConfigDef::PrintConfigDef()
|
||||
def->max = 359;
|
||||
def->default_value = new ConfigOptionInt(0);
|
||||
|
||||
def = this->add("support_material_buildplate_only", coBool);
|
||||
def->label = "Support on build plate only";
|
||||
def->category = "Support material";
|
||||
def->tooltip = "Only create support if it lies on a build plate. Don't create support on a print.";
|
||||
def->cli = "support-material-buildplate-only!";
|
||||
def->default_value = new ConfigOptionBool(false);
|
||||
|
||||
def = this->add("support_material_contact_distance", coFloat);
|
||||
def->gui_type = "f_enum_open";
|
||||
def->label = "Contact Z distance";
|
||||
|
||||
@@ -145,6 +145,7 @@ class PrintObjectConfig : public virtual StaticPrintConfig
|
||||
// ConfigOptionFloat seam_preferred_direction_jitter;
|
||||
ConfigOptionBool support_material;
|
||||
ConfigOptionInt support_material_angle;
|
||||
ConfigOptionBool support_material_buildplate_only;
|
||||
ConfigOptionFloat support_material_contact_distance;
|
||||
ConfigOptionInt support_material_enforce_layers;
|
||||
ConfigOptionInt support_material_extruder;
|
||||
@@ -177,6 +178,7 @@ class PrintObjectConfig : public virtual StaticPrintConfig
|
||||
// OPT_PTR(seam_preferred_direction_jitter);
|
||||
OPT_PTR(support_material);
|
||||
OPT_PTR(support_material_angle);
|
||||
OPT_PTR(support_material_buildplate_only);
|
||||
OPT_PTR(support_material_contact_distance);
|
||||
OPT_PTR(support_material_enforce_layers);
|
||||
OPT_PTR(support_material_extruder);
|
||||
|
||||
@@ -236,6 +236,7 @@ PrintObject::invalidate_state_by_config_options(const std::vector<t_config_optio
|
||||
|| *opt_key == "support_material_interface_extruder"
|
||||
|| *opt_key == "support_material_interface_spacing"
|
||||
|| *opt_key == "support_material_interface_speed"
|
||||
|| *opt_key == "support_material_buildplate_only"
|
||||
|| *opt_key == "support_material_pattern"
|
||||
|| *opt_key == "support_material_spacing"
|
||||
|| *opt_key == "support_material_threshold"
|
||||
|
||||
Reference in New Issue
Block a user