mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-19 09:37:14 +02:00
[core] change param order in Edge constructor
This commit is contained in:
parent
287c0f13ce
commit
d74affba35
1 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue