ENH: add limit for smooth_coefficient
Jira: 10274 Signed-off-by: qing.zhang <qing.zhang@bambulab.com> Change-Id: I9e288de79b38af6baf93263ccbb452c8996430ba
This commit is contained in:
parent
f88395c347
commit
2eace660e8
|
@ -4622,7 +4622,7 @@ ExtrusionPaths GCode::set_speed_transition(ExtrusionPaths &paths)
|
||||||
|
|
||||||
void GCode::smooth_speed_discontinuity_area(ExtrusionPaths &paths) {
|
void GCode::smooth_speed_discontinuity_area(ExtrusionPaths &paths) {
|
||||||
|
|
||||||
if (paths.size() <= 1)
|
if (paths.size() <= 1 || this->config().smooth_coefficient == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//step 1 merge same speed path
|
//step 1 merge same speed path
|
||||||
|
|
|
@ -2691,8 +2691,9 @@ void PrintConfigDef::init_fff_params()
|
||||||
def = this->add("smooth_coefficient", coFloat);
|
def = this->add("smooth_coefficient", coFloat);
|
||||||
def->label = L("Smooth coefficient");
|
def->label = L("Smooth coefficient");
|
||||||
def->category = L("Quality");
|
def->category = L("Quality");
|
||||||
def->tooltip = L("The smaller the number, the longer the speed transition path.");
|
def->tooltip = L("The smaller the number, the longer the speed transition path. 0 means not apply.");
|
||||||
def->mode = comAdvanced;
|
def->mode = comAdvanced;
|
||||||
|
def->min = 0;
|
||||||
def->set_default_value(new ConfigOptionFloat(80));
|
def->set_default_value(new ConfigOptionFloat(80));
|
||||||
|
|
||||||
def = this->add("wall_filament", coInt);
|
def = this->add("wall_filament", coInt);
|
||||||
|
|
Loading…
Reference in New Issue