From 40030b8a959cdc7ad9f40599ebf8e0a1c8f467cd Mon Sep 17 00:00:00 2001 From: Nihad Karajko Date: Tue, 29 Oct 2024 18:09:26 +0100 Subject: [PATCH] Fix Clone Function --- src/ACadSharp/Objects/BlockVisibilityParameter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ACadSharp/Objects/BlockVisibilityParameter.cs b/src/ACadSharp/Objects/BlockVisibilityParameter.cs index f785fbd6..d514d788 100644 --- a/src/ACadSharp/Objects/BlockVisibilityParameter.cs +++ b/src/ACadSharp/Objects/BlockVisibilityParameter.cs @@ -122,7 +122,7 @@ public override CadObject Clone() clone.SubBlocks.Clear(); foreach (var item in this.SubBlocks) { - clone.Entities.Add((Entity)item.Clone()); + clone.SubBlocks.Add((SubBlock)item.Clone()); } return clone;