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/Operations/OperationRaftRelief.cs')
-rw-r--r--UVtools.Core/Operations/OperationRaftRelief.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/UVtools.Core/Operations/OperationRaftRelief.cs b/UVtools.Core/Operations/OperationRaftRelief.cs
index ffbfe6e..93b8104 100644
--- a/UVtools.Core/Operations/OperationRaftRelief.cs
+++ b/UVtools.Core/Operations/OperationRaftRelief.cs
@@ -242,9 +242,9 @@ namespace UVtools.Core.Operations
Parallel.For(_ignoreFirstLayers, firstSupportLayerIndex, layerIndex =>
{
if (progress.Token.IsCancellationRequested) return;
- using var result = SlicerFile[layerIndex].LayerMat;
- using var original = result.Clone();
- var target = GetRoiOrDefault(result);
+ using var mat = SlicerFile[layerIndex].LayerMat;
+ using var original = mat.Clone();
+ var target = GetRoiOrDefault(mat);
switch (ReliefType)
{
@@ -268,8 +268,8 @@ namespace UVtools.Core.Operations
break;
}
- ApplyMask(original, result);
- SlicerFile[layerIndex].LayerMat = result;
+ ApplyMask(original, target);
+ SlicerFile[layerIndex].LayerMat = mat;
progress.LockAndIncrement();
});