Skip to content

Commit 3d8f3e7

Browse files
committed
direct_api: Joint.connected_to is a set(), not singleton
1 parent dcb5278 commit 3d8f3e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/build123d/topology.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6762,7 +6762,7 @@ class Joint(ABC):
67626762
def __init__(self, label: str, parent: Union[Solid, Compound]):
67636763
self.label = label
67646764
self.parent = parent
6765-
self.connected_to: Joint = None
6765+
self.connected_to: Joint = set()
67666766

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

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

6781-
self.connected_to = other
6781+
self.connected_to.add(other)
67826782

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

0 commit comments

Comments
 (0)