Skip to content

Commit f10763a

Browse files
committed
direct_api: Joint.connected_to is a set(), not singleton
1 parent ea06f7f commit f10763a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/build123d/direct_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8011,7 +8011,7 @@ class Joint(ABC):
80118011
def __init__(self, label: str, parent: Union[Solid, Compound]):
80128012
self.label = label
80138013
self.parent = parent
8014-
self.connected_to: Joint = None
8014+
self.connected_to: Joint = set()
80158015

80168016
def connect_to(self, other: Joint, *args, **kwargs): # pragma: no cover
80178017
"""Connect Joint self by repositioning other"""
@@ -8027,7 +8027,7 @@ def connect_to(self, other: Joint, *args, **kwargs): # pragma: no cover
80278027

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

8030-
self.connected_to = other
8030+
self.connected_to.add(other)
80318031

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

0 commit comments

Comments
 (0)