Get the support extruder mapping right.
This commit is contained in:
parent
1e220f7074
commit
b1674aaaab
1 changed files with 22 additions and 3 deletions
|
|
@ -207,8 +207,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
//startCode=M109 S210
|
||||
new MapStartGCode("startCode", "start_gcode"),
|
||||
|
||||
//supportExtruder=-1
|
||||
new MapItem("supportExtruder", "support_material_extruder"),
|
||||
//supportExtruder=1
|
||||
new ValuePlusConstant("supportExtruder", "support_material_extruder", -1),
|
||||
|
||||
//supportLineSpacing=2
|
||||
new MapItem("supportLineSpacing", "support_material_spacing"),
|
||||
|
|
@ -285,7 +285,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
public class ConstantMinusValue : MapItem
|
||||
{
|
||||
double constant;
|
||||
|
||||
|
||||
public ConstantMinusValue(string mappedKey, string originalKey, double constant)
|
||||
: base(mappedKey, originalKey)
|
||||
{
|
||||
|
|
@ -301,6 +301,25 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
}
|
||||
}
|
||||
|
||||
public class ValuePlusConstant : MapItem
|
||||
{
|
||||
double constant;
|
||||
|
||||
public ValuePlusConstant(string mappedKey, string originalKey, double constant)
|
||||
: base(mappedKey, originalKey)
|
||||
{
|
||||
this.constant = constant;
|
||||
}
|
||||
|
||||
public override string MappedValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return (double.Parse(OriginalValue) + constant).ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class InfillTranslator : MapItem
|
||||
{
|
||||
public override string MappedValue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue