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:
authorTiago Conceição <Tiago_caza@hotmail.com>2021-02-18 06:49:41 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-02-18 06:49:41 +0300
commit9c9540646c2ed8e3eac17cfddfc05aba209084a6 (patch)
treeaa1eb6bd662bb0585dbf6c40f9fe4411e3547bf8 /UVtools.Core/FileFormats/PhotonSFile.cs
parentf1dea71c601ccb6472cb32480d6bc57572d03809 (diff)
v2.4.8v2.4.8
* (Improvement) Cache per layer and global used material for faster calculations * (Improvement) Better internal PrintTime management * **(Improvement) GUI:** * Show per layer used material percentage compared to the rest model * Show total of millimeters cured per layer if available * Show bounds and ROI in millimeters if available * Show display width and height below resolution if available * Don't split (Actions / Refresh / Save) region when resize window and keep those fixed * **(Improvement) Calibrate - Grayscale:** * Add a option to convert brightness to exposure time on divisions text * Adjust text position to be better centered and near from the center within divisions * (Fix) Calculate the used material with global layer height instead of calculate height from layer difference which lead to wrong values in parallel computation * (Fix) Converting files were not setting the new file as parent for the layer manager, this affected auto convertions from SL1 and lead to crashes and bad calculations if file were not reloaded from the disk (#150, #151) * (Fix) PositionZ rounding error when removing layers
Diffstat (limited to 'UVtools.Core/FileFormats/PhotonSFile.cs')
-rw-r--r--UVtools.Core/FileFormats/PhotonSFile.cs11
1 files changed, 3 insertions, 8 deletions
diff --git a/UVtools.Core/FileFormats/PhotonSFile.cs b/UVtools.Core/FileFormats/PhotonSFile.cs
index d4feba8..0a1af1c 100644
--- a/UVtools.Core/FileFormats/PhotonSFile.cs
+++ b/UVtools.Core/FileFormats/PhotonSFile.cs
@@ -373,16 +373,11 @@ namespace UVtools.Core.FileFormats
public override float MaterialMilliliters
{
- get
- {
- var materialMl = base.MaterialMilliliters;
- return materialMl > 0 ? materialMl : (float) HeaderSettings.VolumeMl;
- }
+ get => base.MaterialMilliliters;
set
{
- if (value <= 0) value = base.MaterialMilliliters;
- HeaderSettings.VolumeMl = (float)Math.Round(value, 3);
- base.MaterialMilliliters = (float) HeaderSettings.VolumeMl;
+ base.MaterialMilliliters = value;
+ HeaderSettings.VolumeMl = base.MaterialMilliliters;
}
}