Skip to content

Commit

Permalink
do not shift bidirectional edges when using splines
Browse files Browse the repository at this point in the history
  • Loading branch information
chrizzFTD committed Mar 8, 2024
1 parent 349d807 commit 70f13ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grill/views/_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def adjust(self):

if not is_target_plugged:
line = QtCore.QLineF(source_point, target_point)
if self._bidirectional_shift and source_point != target_point: # offset in case of bidirectional connections
if not self._spline_path and self._bidirectional_shift and source_point != target_point:
# offset in case of bidirectional connections when we are not using splines (as lines would overlap)
line = _parallel_line(line, distance=self._bidirectional_shift, head_offset=0)

# Check if there is an intersection on the target node to know where to draw the arrow
Expand Down

0 comments on commit 70f13ed

Please sign in to comment.