Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/FileFormats/FileFormat.cs')
-rw-r--r--UVtools.Core/FileFormats/FileFormat.cs9
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
}
}