Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2022-05-19 15:48:48 +0300
committertamasmeszaros <meszaros.q@gmail.com>2022-05-19 15:48:48 +0300
commit3c6bc43b28f33b813299cac25c1790e17246ade0 (patch)
treebd6152dade757e376e97f26dec6201551137c3ba
parent243e049c15fadfe24a0c2eafdd854089e6bac6a3 (diff)
Adjust configuration layer to better reflect tree strategies.tm_branching_tree
-rw-r--r--src/libslic3r/PrintConfig.cpp10
-rw-r--r--src/slic3r/GUI/ConfigManipulation.cpp10
2 files changed, 14 insertions, 6 deletions
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp
index 6b5e926f5..0a4f05d5d 100644
--- a/src/libslic3r/PrintConfig.cpp
+++ b/src/libslic3r/PrintConfig.cpp
@@ -3536,9 +3536,13 @@ void PrintConfigDef::init_sla_params()
def = this->add("support_pillar_widening_factor", coFloat);
def->label = L("Pillar widening factor");
def->category = L("Supports");
- def->tooltip = L("Merging bridges or pillars into another pillars can "
- "increase the radius. Zero means no increase, one means "
- "full increase.");
+ def->tooltip = L(
+ "Merging bridges or pillars into another pillars can "
+ "increase the radius. Zero means no increase, one means "
+ "full increase. The exact amount of increase is unspecified and can "
+ "change in the future. What is garanteed is that thickness will not "
+ "exceed \"support_base_diameter\"");
+
def->min = 0;
def->max = 1;
def->mode = comExpert;
diff --git a/src/slic3r/GUI/ConfigManipulation.cpp b/src/slic3r/GUI/ConfigManipulation.cpp
index ff79fd9a1..d9fb81694 100644
--- a/src/slic3r/GUI/ConfigManipulation.cpp
+++ b/src/slic3r/GUI/ConfigManipulation.cpp
@@ -352,14 +352,17 @@ void ConfigManipulation::update_print_sla_config(DynamicPrintConfig* config, con
void ConfigManipulation::toggle_print_sla_options(DynamicPrintConfig* config)
{
bool supports_en = config->opt_bool("supports_enable");
+ sla::SupportTreeType treetype = config->opt_enum<sla::SupportTreeType>("support_tree_type");
+ bool is_default_tree = treetype == sla::SupportTreeType::Default;
+ bool is_branching_tree = treetype == sla::SupportTreeType::Branching;
toggle_field("support_head_front_diameter", supports_en);
toggle_field("support_head_penetration", supports_en);
toggle_field("support_head_width", supports_en);
toggle_field("support_pillar_diameter", supports_en);
toggle_field("support_small_pillar_diameter_percent", supports_en);
- toggle_field("support_max_bridges_on_pillar", supports_en);
- toggle_field("support_pillar_connection_mode", supports_en);
+ toggle_field("support_max_bridges_on_pillar", supports_en && is_default_tree);
+ toggle_field("support_pillar_connection_mode", supports_en && is_default_tree);
toggle_field("support_tree_type", supports_en);
toggle_field("support_buildplate_only", supports_en);
toggle_field("support_base_diameter", supports_en);
@@ -367,7 +370,8 @@ void ConfigManipulation::toggle_print_sla_options(DynamicPrintConfig* config)
toggle_field("support_base_safety_distance", supports_en);
toggle_field("support_critical_angle", supports_en);
toggle_field("support_max_bridge_length", supports_en);
- toggle_field("support_max_pillar_link_distance", supports_en);
+ toggle_field("support_max_pillar_link_distance", supports_en && is_default_tree);
+ toggle_field("support_pillar_widening_factor", supports_en && is_branching_tree);
toggle_field("support_points_density_relative", supports_en);
toggle_field("support_points_minimal_distance", supports_en);