update support_material_synchronize_layers tooltip

This commit is contained in:
Wang YB
2024-05-06 09:09:16 +08:00
parent 8c0b581581
commit 4404fdc03c
2 changed files with 2 additions and 4 deletions

View File

@@ -3225,9 +3225,7 @@ void PrintConfigDef::init_fff_params()
def->label = L("Synchronize with object layers");
def->category = L("Support material");
// TRN PrintSettings : "Synchronize with object layers"
def->tooltip = L("Synchronize support layers with the object print layers. This is useful "
"with multi-material printers, where the extruder switch is expensive. "
"This option is only available when top contact Z distance is set to zero.");
def->tooltip = L("If not checked, support layers to use layer heights that are independent of the object layer.");
def->mode = comExpert;
def->set_default_value(new ConfigOptionBool(false));

View File

@@ -125,7 +125,7 @@ SlicingParameters SlicingParameters::create_from_config(
if (params.gap_object_support <= 0)
params.gap_object_support = params.gap_support_object;
if (!print_config.independent_support_layer_height) {
if (object_config.support_material_synchronize_layers) {
params.gap_raft_object = std::round(params.gap_raft_object / object_config.layer_height + EPSILON) * object_config.layer_height;
params.gap_object_support = std::round(params.gap_object_support / object_config.layer_height + EPSILON) *
object_config.layer_height;