Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pedohorse committed Feb 28, 2024
1 parent 80e660c commit f256d70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lifeblood_viewer/graphics_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,9 +911,9 @@ def mousePressEvent(self, event: QGraphicsSceneMouseEvent):
relnode.setSelected(True)
relrelnodes = set()
if selecting_inputs:
relrelnodes.update(node for node in (relnode.input_nodes() if selecting_inputs else relnode.output_nodes()) if node not in extra_selected_nodes)
relrelnodes.update(node for node in relnode.input_nodes() if node not in extra_selected_nodes)
if selecting_outputs:
relrelnodes.update(node for node in (relnode.output_nodes() if selecting_inputs else relnode.output_nodes()) if node not in extra_selected_nodes)
relrelnodes.update(node for node in relnode.output_nodes() if node not in extra_selected_nodes)
extra_selected_nodes_ordered.extend(relrelnodes)
extra_selected_nodes.update(relrelnodes)
self.setSelected(True)
Expand Down Expand Up @@ -1098,8 +1098,8 @@ def paint(self, painter: PySide2.QtGui.QPainter, option: QStyleOptionGraphicsIte

painter.setPen(self.__pen)

hldiag = QPointF(self.__wire_highlight_radius, self.__wire_highlight_radius)
if self.__hoverover_pos is not None:
hldiag = QPointF(self.__wire_highlight_radius, self.__wire_highlight_radius)
if line.intersects(QRectF(self.__hoverover_pos - hldiag, self.__hoverover_pos + hldiag)):
painter.setPen(self.__pen_highlight)

Expand Down

0 comments on commit f256d70

Please sign in to comment.