Change ZOffset to LayerTop

This commit is contained in:
John Lewin 2018-05-09 15:27:31 -07:00
parent acd8842f0b
commit 7fadf07589
5 changed files with 8 additions and 8 deletions

View file

@ -927,10 +927,10 @@ namespace MatterControl.Printing
return .5;
}
public override double GetLayerZOffset(int layerIndex)
public override double GetLayerTop(int layerIndex)
{
double total = 0;
for (int i = 0; i < layerIndex; i++)
for (int i = 0; i <= layerIndex; i++)
{
total += GetLayerHeight(i);
}