diff options
Diffstat (limited to 'UVtools.Core/Layers/Layer.cs')
-rw-r--r-- | UVtools.Core/Layers/Layer.cs | 11 |
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 |