summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Graphics.py8
-rw-r--r--Undo.datbin25575 -> 0 bytes
2 files changed, 4 insertions, 4 deletions
diff --git a/Graphics.py b/Graphics.py
index f72ea10..d87e8b8 100644
--- a/Graphics.py
+++ b/Graphics.py
@@ -66,11 +66,11 @@ class Graphics(QDialog, QtWidgets.QGraphicsItem):
pointA = NodeItem.get_instances(v.name)
pointB = NodeItem.get_instances(i.name)
rect = pointA.output[0].boundingRect()
- pointAA = QtCore.QPointF(rect.x() + rect.width()/2, rect.y() + rect.height()/2)
+ pointAA = QtCore.QPointF(rect.x() + rect.width()/(2*3), rect.y() + rect.height()/(2*3))
pointAA = pointA.output[0].mapToScene(pointAA)
socketB = next((s for s in pointB.input if k == s.id))
rectB = socketB.boundingRect()
- pointBB = QtCore.QPointF(rectB.x() + rectB.width()/2, rectB.y() + rectB.height()/2)
+ pointBB = QtCore.QPointF(rectB.x() + rectB.width()/(2*3), rectB.y() + rectB.height()/(2*3))
pointBB = socketB.mapToScene(pointBB)
self.new_line = NodeLine(pointAA, pointBB, 'in')
self.new_line.source = pointA.output[0]
@@ -86,10 +86,10 @@ class Graphics(QDialog, QtWidgets.QGraphicsItem):
pointB = NodeItem.get_instances(v.name)
socketA = next(s for s in pointA.output if k == s.id)
rect = socketA.boundingRect()
- pointAA = QtCore.QPointF(rect.x() + rect.width()/2, rect.y() + rect.height()/2)
+ pointAA = QtCore.QPointF(rect.x() + rect.width()/(2*3), rect.y() + rect.height()/(2*3))
pointAA = socketA.mapToScene(pointAA)
rectB = pointB.input[0].boundingRect()
- pointBB = QtCore.QPointF(rectB.x() + rectB.width()/2, rectB.y() + rectB.height()/2)
+ pointBB = QtCore.QPointF(rectB.x() + rectB.width()/(2*3), rectB.y() + rectB.height()/(2*3))
pointBB = pointB.input[0].mapToScene(pointBB)
self.new_line = NodeLine(pointAA, pointBB, 'out')
self.new_line.source = socketA
diff --git a/Undo.dat b/Undo.dat
index 113df8c..e69de29 100644
--- a/Undo.dat
+++ b/Undo.dat
Binary files differ