mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-02 19:02:29 +02:00
[core] Edge: invert src/dst parameters order
This commit is contained in:
parent
653cec28c9
commit
45f04e14d2
1 changed files with 3 additions and 3 deletions
|
@ -151,10 +151,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):
|
||||
|
@ -629,7 +629,7 @@ class Graph(BaseObject):
|
|||
raise RuntimeError('The attributes of the edge should be part of a common graph.')
|
||||
if dstAttr in self.edges.keys():
|
||||
raise RuntimeError('Destination attribute "{}" is already connected.'.format(dstAttr.fullName()))
|
||||
edge = Edge(dstAttr, srcAttr)
|
||||
edge = Edge(srcAttr, dstAttr)
|
||||
self.edges.add(edge)
|
||||
dstAttr.valueChanged.emit()
|
||||
dstAttr.isLinkChanged.emit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue