diff options
Diffstat (limited to 'UVtools.Core/FileFormats/FileFormat.cs')
-rw-r--r-- | UVtools.Core/FileFormats/FileFormat.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/UVtools.Core/FileFormats/FileFormat.cs b/UVtools.Core/FileFormats/FileFormat.cs index ff2f5c3..ac9a755 100644 --- a/UVtools.Core/FileFormats/FileFormat.cs +++ b/UVtools.Core/FileFormats/FileFormat.cs @@ -914,8 +914,8 @@ namespace UVtools.Core.FileFormats break; } - var lightOffDelay = OperationCalculator.LightOffDelayC.CalculateSeconds(layer.LiftHeight, layer.LiftSpeed, layer.RetractSpeed); - time += layer.ExposureTime + lightOffDelay; + var lightOffDelay = layer.CalculateLightOffDelay(); + time += layer.ExposureTime + lightOffDelay > layer.LightOffDelay ? lightOffDelay : layer.LightOffDelay; /*if (lightOffDelay >= layer.LightOffDelay) time += lightOffDelay; else @@ -1953,6 +1953,11 @@ namespace UVtools.Core.FileFormats return result; } + public void UpdatePrintTime() + { + PrintTime = PrintTimeComputed; + } + #endregion } } |