Skip to content

Commit

Permalink
v5.0.1
Browse files Browse the repository at this point in the history
- (Fix) Windows MSI: System.IO.Compression.Native is missing when upgrading from 4.4.3 (#957)
- (Fix) Index out of range when saving some file formats (#957)
- (Change) Exposure time finder: Allow using 0 for the normal step in the multiple exposure generator (#958)
  • Loading branch information
sn4k3 committed Dec 19, 2024
1 parent 59c5d5c commit 026ac1d
Show file tree
Hide file tree
Showing 10 changed files with 232 additions and 237 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 19/12/2024 - v5.0.1

- (Fix) Windows MSI: System.IO.Compression.Native is missing when upgrading from 4.4.3 (#957)
- (Fix) Index out of range when saving some file formats (#957)
- (Change) Exposure time finder: Allow using 0 for the normal step in the multiple exposure generator (#958)

## 18/12/2024 - v5.0.0

- **File formats:**
Expand Down
3 changes: 2 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>

<!-- Versions -->
<UVtoolsVersion>5.0.0</UVtoolsVersion>
<UVtoolsVersion>5.0.1</UVtoolsVersion>
<AvaloniaVersion>11.2.2</AvaloniaVersion>

<!-- MvvmToolkit -->
<MvvmToolkitEnableINotifyPropertyChangingSupport>false</MvvmToolkitEnableINotifyPropertyChangingSupport>
</PropertyGroup>

<!-- GitHub Actions -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
Expand Down
27 changes: 2 additions & 25 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
- **File formats:**
- (Add) Anycubic PWSZ Zip file format (#892)
- (Add) Support for Anycubic Photon Mono 4 (pm4n) and corresponding PrusaSlicer profile
- (Add) Support for Anycubic Photon Mono 4 Ultra (pm4u) and corresponding PrusaSlicer profile
- (Add) Support for Anycubic Photon Mono M7 (pm7) and corresponding PrusaSlicer profile
- (Add) Support for Anycubic Photon Mono M7 Max (pm7m) and corresponding PrusaSlicer profile
- (Add) Support for Anycubic Photon Mono M7 Pro (pwsz) and corresponding PrusaSlicer profile
- (Add) PrusaSlicer printer: Phrozen Sonic Mighty Revo (#950)
- (Add) Litophane tool: Option to enable or disable the separation of grayscale pixels (#954)
- (Add) Exposure time finder: Re-arrange exposure text layout and allow to change it font (#955)
- (Add) Setting: Available RAM lower limit - Sets a lower limiter for the available memory RAM the program is allowed to run operations.
When meet the threshold, a stopping action will be queued to relief pressure and maintain the system stability.
In cases where is unable to pause or cancel the operation, the program will be forced to close and trigger an exception to ensure the system stability.
Note: This limiter will check the RAM every 2 seconds while operations are running, if you have set a very low limit there is a chance to consume more RAM in the time and cause system instability.
System can also reserve some RAM to prevent depletion and start to use SWAP memory, doing such with a low limit and is possible that the limiter never trigger.
0: Ignore the RAM limiter.
Default: 1 GB
- (Improvement) Change the gif animation library to a more efficient and compatible one
- (Fix) Contour traverse function was duplicating the contours, causing wrong calculations
- (Fix) Blur: Prevent stack blur from use even values
- (Upgrade) AvaloniaUI from 11.1.3 to 11.2.2
- (Upgrade) .NET from 6.0.33 to 9.0.0
- .NET 6.0 is end of life and will no longer supported
- This represents three major upgrades and will increase the system os version requirements, see more here: https://github.com/dotnet/core/blob/main/release-notes/9.0/supported-os.md
- With this upgrade the software will be able to take advantage of the new features and improvements of the .NET 9.0, including a significant performance boost
- (Fix) Index out of range when saving some file formats (#957)
- (Change) Exposure time finder: Allow using 0 for the normal step in the multiple exposure generator (#958)

4 changes: 2 additions & 2 deletions UVtools.Core/Extensions/BitExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static byte[] ToBytesLittleEndian(float value)
return bytes;
}

public static void ToBytesLittleEndian(float value, byte[] buffer, uint offset = 0)
public static void ToBytesLittleEndian(float value, byte[] buffer, int offset = 0)
{
BinaryPrimitives.WriteSingleLittleEndian(buffer.AsSpan((int)offset, 4), value);
}
Expand All @@ -124,7 +124,7 @@ public static byte[] ToBytesBigEndian(float value)
return bytes;
}

public static void ToBytesBigEndian(float value, byte[] buffer, uint offset = 0)
public static void ToBytesBigEndian(float value, byte[] buffer, int offset = 0)
{
BinaryPrimitives.WriteSingleBigEndian(buffer.AsSpan((int)offset, 4), value);
}
Expand Down
2 changes: 1 addition & 1 deletion UVtools.Core/FileFormats/FileFormat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ or DATATYPE_BGR888
{
var bytesPerPixel = dataType is "RGB888" or "BGR888" ? 3 : 2;
var bytes = new byte[mat.Width * mat.Height * bytesPerPixel];
uint index = 0;
int index = 0;
var span = mat.GetDataByteReadOnlySpan();
for (int i = 0; i < span.Length;)
{
Expand Down
5 changes: 3 additions & 2 deletions UVtools.Core/Operations/OperationCalibrateExposureFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,7 @@ lastExposureItem is not null &&
lastCurrentHeight == currentHeight &&
lastExposureItem.LayerHeight == layerHeight &&
(
(isBottomLayer && lastExposureItem.BottomExposure == bottomExposure || !isBottomLayer && lastExposureItem.Exposure == normalExposure) ||
((isBottomLayer && lastExposureItem.BottomExposure == bottomExposure) || (!isBottomLayer && lastExposureItem.Exposure == normalExposure)) ||
(!isBottomLayer && isBaseLayer && _multipleExposuresBaseLayersPrintMode != CalibrateExposureFinderMultipleExposuresBaseLayersPrintModes.Iterative)
);

Expand Down Expand Up @@ -2125,11 +2125,12 @@ lastExposureItem is not null &&
{
layer.ExposureTime = _multipleExposuresBaseLayersPrintMode switch
{
CalibrateExposureFinderMultipleExposuresBaseLayersPrintModes.Iterative => (float)normalExposure,
CalibrateExposureFinderMultipleExposuresBaseLayersPrintModes.UseLowest => (float) _exposureTable[0].Exposure,
CalibrateExposureFinderMultipleExposuresBaseLayersPrintModes.UseMiddle => (float) _exposureTable[(int) Math.Ceiling((_exposureTable.Count - 1) / 2.0)].Exposure,
CalibrateExposureFinderMultipleExposuresBaseLayersPrintModes.UseHighest => (float) _exposureTable[^1].Exposure,
CalibrateExposureFinderMultipleExposuresBaseLayersPrintModes.Custom => (float) _multipleExposuresBaseLayersCustomExposure,
_ => throw new ArgumentOutOfRangeException($"Unhandled type for {_multipleExposuresBaseLayersCustomExposure}")
_ => throw new ArgumentOutOfRangeException($"Unhandled type for {_multipleExposuresBaseLayersPrintMode}")
};
}
}
Expand Down
Loading

0 comments on commit 026ac1d

Please sign in to comment.