Skip to content

Commit

Permalink
Replace calls to GetShallowClone with ShallowClone
Browse files Browse the repository at this point in the history
  • Loading branch information
IsakNaslundBh authored and Fraser Greenroyd committed Jan 6, 2021
1 parent b38bca3 commit f40386c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SAP2000_Engine/Query/JoinRigidLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
using System.Collections.Generic;
using System.Linq;
using BH.oM.Structure.Constraints;
using BH.Engine.Base;

namespace BH.Engine.Adapters.SAP2000
{
Expand Down Expand Up @@ -52,7 +53,7 @@ public static List<RigidLink> JoinRigidLink(List<RigidLink> linkList)
}
else
{
RigidLink newJoinedLink = (RigidLink)link.GetShallowClone();
RigidLink newJoinedLink = link.ShallowClone();
newJoinedLink.Name = JoinedName;
joinedList.Add(JoinedName, newJoinedLink);
}
Expand Down

0 comments on commit f40386c

Please sign in to comment.