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 Sep 8, 2023
1 parent 8209624 commit f336813
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 @@ -6782,7 +6782,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, **kwargs): # pragma: no cover
"""Connect Joint self by repositioning other"""
Expand All @@ -6792,7 +6792,7 @@ def _connect_to(self, other: Joint, **kwargs): # pragma: no cover

relative_location = self.relative_to(other, **kwargs)
other.parent.locate(self.parent.location * relative_location)
self.connected_to = other
self.connected_to.add(other)

@abstractmethod
def connect_to(self, other: Joint, **kwags):
Expand Down

0 comments on commit f336813

Please sign in to comment.