From d74affba35351e8328d63d117150b3da982fca63 Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Mon, 16 Oct 2017 10:57:19 +0200 Subject: [PATCH] [core] change param order in Edge constructor --- meshroom/core/graph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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):