Set layer drawing (sync to print) from instruction index rather than time

This commit is contained in:
LarsBrubaker 2019-05-19 20:10:28 -07:00
parent 165726064b
commit bc96467792
6 changed files with 78 additions and 8 deletions

View file

@ -273,7 +273,17 @@ namespace MatterControl.Printing
return readLinesRingBuffer[index % MaxLinesToBuffer];
}
public override double Ratio0to1IntoContainedLayer(int instructionIndex)
public override double Ratio0to1IntoContainedLayerSeconds(int instructionIndex)
{
if (ByteCount > 0)
{
return BytePosition / (double)ByteCount;
}
return 1;
}
public override double Ratio0to1IntoContainedLayerInstruction(int instructionIndex)
{
if (ByteCount > 0)
{