mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 03:12:02 +08:00
Add max boundary to the scarf_start_height
This commit is contained in:
parent
00010de0ee
commit
26b96c5ad2
@ -297,7 +297,7 @@ boost::variant<Point, Scarf::Scarf> finalize_seam_position(
|
||||
Scarf::Scarf scarf{};
|
||||
scarf.entire_loop = region->config().scarf_seam_entire_loop;
|
||||
scarf.max_segment_length = region->config().scarf_seam_max_segment_length;
|
||||
scarf.start_height = region->config().scarf_seam_start_height.get_abs_value(1.0);
|
||||
scarf.start_height = std::min(region->config().scarf_seam_start_height.get_abs_value(1.0), 1.0);
|
||||
|
||||
const double offset{scarf.entire_loop ? 0.0 : region->config().scarf_seam_length.value};
|
||||
const std::optional<Geometry::PointOnLine> outter_scarf_start_point{Geometry::offset_along_lines(
|
||||
|
@ -2699,6 +2699,7 @@ void PrintConfigDef::init_fff_params()
|
||||
def->tooltip = L("Start height of the scarf joint specified as fraction of the current layer height.");
|
||||
def->sidetext = L(" %");
|
||||
def->min = 0;
|
||||
def->max = 100;
|
||||
def->mode = comAdvanced;
|
||||
def->set_default_value(new ConfigOptionPercent(0));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user