Set layer drawing (sync to print) from instruction index rather than time
This commit is contained in:
parent
165726064b
commit
bc96467792
6 changed files with 78 additions and 8 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue