mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 06:55:54 +08:00
Fix bad check for default_acceleration when diabled and exporting config.
supermerill/SuperSlicer#1622
This commit is contained in:
parent
37838be7cf
commit
9328681428
@ -6482,6 +6482,7 @@ std::set<const DynamicPrintConfig*> DynamicPrintConfig::value_changed(const t_co
|
||||
}
|
||||
|
||||
//FIXME localize this function.
|
||||
//note: seems only called for config export & command line. Most of the validation work for the gui is done elsewhere... So this function may be a bit out-of-sync
|
||||
std::string FullPrintConfig::validate()
|
||||
{
|
||||
// --layer-height
|
||||
@ -6558,7 +6559,7 @@ std::string FullPrintConfig::validate()
|
||||
// --fill-density
|
||||
if (fabs(this->fill_density.value - 100.) < EPSILON &&
|
||||
(! print_config_def.get("top_fill_pattern")->has_enum_value(this->fill_pattern.serialize())
|
||||
|| ! print_config_def.get("bottom_fill_pattern")->has_enum_value(this->fill_pattern.serialize())
|
||||
&& ! print_config_def.get("bottom_fill_pattern")->has_enum_value(this->fill_pattern.serialize())
|
||||
))
|
||||
return "The selected fill pattern is not supposed to work at 100% density";
|
||||
|
||||
@ -6581,11 +6582,6 @@ std::string FullPrintConfig::validate()
|
||||
if (em <= 0)
|
||||
return "Invalid value for --extrusion-multiplier";
|
||||
|
||||
// --default-acceleration
|
||||
if ((this->perimeter_acceleration.value != 0. || this->infill_acceleration.value != 0. || this->bridge_acceleration.value != 0. || this->first_layer_acceleration.value != 0.) &&
|
||||
this->default_acceleration.value == 0.)
|
||||
return "Invalid zero value for --default-acceleration when using other acceleration settings";
|
||||
|
||||
// --spiral-vase
|
||||
if (this->spiral_vase) {
|
||||
// Note that we might want to have more than one perimeter on the bottom
|
||||
|
Loading…
x
Reference in New Issue
Block a user