diff --git a/meshroom/core/graph.py b/meshroom/core/graph.py index 1ae39b04..c109578c 100644 --- a/meshroom/core/graph.py +++ b/meshroom/core/graph.py @@ -152,10 +152,10 @@ class Attribute(BaseObject): class Edge(BaseObject): - def __init__(self, dst, src, parent=None): + def __init__(self, src, dst, parent=None): super(Edge, self).__init__(parent) - self._dst = dst self._src = src + self._dst = dst @property def src(self): @@ -615,7 +615,7 @@ class Graph(BaseObject): raise RuntimeError('The attributes of the edge should be part of a common graph.') if inputAttr in self.edges.keys(): raise RuntimeError('Input attribute "{}" is already connected.'.format(inputAttr.fullName())) - self.edges.add(Edge(inputAttr, outputAttr)) + self.edges.add(Edge(outputAttr, inputAttr)) inputAttr.valueChanged.emit() def addEdges(self, *edges):