Skip to content

Commit

Permalink
Allow default acceleration/jerk for all parameters. (#6418)
Browse files Browse the repository at this point in the history
Though code uses default jerk value if the parameter is set to zero,
some parameters wasn't allow to have zero. This PR allows zero value for
them.


![image](https://github.com/user-attachments/assets/42d3c6b9-68da-4bf3-9bee-47e0a4f942d5)
  • Loading branch information
SoftFever authored Feb 19, 2025
2 parents 55a351d + fd315ee commit 7b167bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libslic3r/PrintConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2567,31 +2567,31 @@ void PrintConfigDef::init_fff_params()
def->label = L("Top surface");
def->tooltip = L("Jerk for top surface");
def->sidetext = L("mm/s");
def->min = 1;
def->min = 0;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(9));

def = this->add("infill_jerk", coFloat);
def->label = L("Infill");
def->tooltip = L("Jerk for infill");
def->sidetext = L("mm/s");
def->min = 1;
def->min = 0;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(9));

def = this->add("initial_layer_jerk", coFloat);
def->label = L("Initial layer");
def->tooltip = L("Jerk for initial layer");
def->sidetext = L("mm/s");
def->min = 1;
def->min = 0;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(9));

def = this->add("travel_jerk", coFloat);
def->label = L("Travel");
def->tooltip = L("Jerk for travel");
def->sidetext = L("mm/s");
def->min = 1;
def->min = 0;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(12));

Expand Down

0 comments on commit 7b167bb

Please sign in to comment.