Skip to content

Commit

Permalink
Fix missing pin actiation
Browse files Browse the repository at this point in the history
  • Loading branch information
formatc1702 committed Oct 24, 2020
1 parent 93a1057 commit ea49e9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wireviz/Harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ def create_graph(self) -> Graph:
for connection_color in cable.connections:
if connection_color.from_port is not None: # connect to left
self.connectors[connection_color.from_name].ports_right = True
self.connectors[connection_color.from_name].activate_pin(connection_color.from_port)
if connection_color.to_port is not None: # connect to right
self.connectors[connection_color.to_name].ports_left = True
self.connectors[connection_color.to_name].activate_pin(connection_color.to_port)

for mate in self.mates:
if isinstance(mate, MatePin):
self.connectors[mate.from_name].ports_right = True
Expand Down

0 comments on commit ea49e9a

Please sign in to comment.