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/Layers/Layer.cs')
-rw-r--r--UVtools.Core/Layers/Layer.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/UVtools.Core/Layers/Layer.cs b/UVtools.Core/Layers/Layer.cs
index 4db7a9e..535f93d 100644
--- a/UVtools.Core/Layers/Layer.cs
+++ b/UVtools.Core/Layers/Layer.cs
@@ -1488,6 +1488,17 @@ public class Layer : BindableBase, IEquatable<Layer>, IEquatable<uint>
_materialMilliliters = _materialMilliliters,
};*/
}
+
+ public Layer[] Clone(uint times)
+ {
+ var layers = new Layer[times];
+ for (int i = 0; i < times; i++)
+ {
+ layers[i] = Clone();
+ }
+
+ return layers;
+ }
#endregion
#region Static Methods