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
|
|
@ -482,7 +482,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
LayerScrollbar.Value = printer.Connection.CurrentlyPrintingLayer;
|
||||
|
||||
double currentPosition = printer.Connection.RatioIntoCurrentLayer;
|
||||
double currentPosition = printer.Connection.RatioIntoCurrentLayerSeconds;
|
||||
layerRenderRatioSlider.FirstValue = 0;
|
||||
|
||||
if (lastPosition != currentPosition)
|
||||
|
|
@ -840,7 +840,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
timeToEnd.Text = GetFormatedTime(hoursToEnd, minutesToEnd, secondsToEnd);
|
||||
|
||||
progressDial.LayerIndex = printer.Connection.CurrentlyPrintingLayer;
|
||||
progressDial.LayerCompletedRatio = printer.Connection.RatioIntoCurrentLayer;
|
||||
progressDial.LayerCompletedRatio = printer.Connection.RatioIntoCurrentLayerSeconds;
|
||||
progressDial.CompletedRatio = printer.Connection.PercentComplete / 100;
|
||||
|
||||
switch (printer.Connection.CommunicationState)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue