Skip to content

Commit d7fff77

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/build123d/direct_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7834,7 +7834,7 @@ class Joint(ABC):
78347834
def __init__(self, label: str, parent: Union[Solid, Compound]):
78357835
self.label = label
78367836
self.parent = parent
7837-
self.connected_to: Joint = None
7837+
self.connected_to: Joint = set()
78387838

78397839
def connect_to(self, other: Joint, *args, **kwargs): # pragma: no cover
78407840
"""Connect Joint self by repositioning other"""
@@ -7850,7 +7850,7 @@ def connect_to(self, other: Joint, *args, **kwargs): # pragma: no cover
78507850

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

7853-
self.connected_to = other
7853+
self.connected_to.add(other)
78547854

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

0 commit comments

Comments
 (0)