Automatically disable retract_layer_change when using spiral_vase

This commit is contained in:
Alessandro Ranellucci
2014-05-26 23:51:58 +02:00
parent 2ac40f9547
commit 98b8936ee2
5 changed files with 27 additions and 7 deletions

View File

@@ -985,6 +985,13 @@ class DynamicPrintConfig : public DynamicConfig
if (!this->has("support_material_interface_extruder"))
this->option("support_material_interface_extruder", true)->setInt(extruder);
}
if (this->has("spiral_vase") && this->opt<ConfigOptionBool>("spiral_vase", true)->value) {
{
// this should be actually done only on the spiral layers instead of all
ConfigOptionBools* opt = this->opt<ConfigOptionBools>("retract_layer_change", true);
opt->values.assign(opt->values.size(), false); // set all values to false
}
}
};
};