Skip to content

Commit

Permalink
direct_api: Joint.connected_to is a set(), not singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrec committed Apr 22, 2023
1 parent dcb5278 commit 3d8f3e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build123d/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -6762,7 +6762,7 @@ class Joint(ABC):
def __init__(self, label: str, parent: Union[Solid, Compound]):
self.label = label
self.parent = parent
self.connected_to: Joint = None
self.connected_to: Joint = set()

def connect_to(self, other: Joint, *args, **kwargs): # pragma: no cover
"""Connect Joint self by repositioning other"""
Expand All @@ -6778,7 +6778,7 @@ def connect_to(self, other: Joint, *args, **kwargs): # pragma: no cover

other.parent.locate(self.parent.location * relative_location)

self.connected_to = other
self.connected_to.add(other)

@abstractmethod
def relative_to(self, other: Joint, *args, **kwargs) -> Location:
Expand Down

0 comments on commit 3d8f3e7

Please sign in to comment.