mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-23 19:47:39 +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):
|
class Edge(BaseObject):
|
||||||
|
|
||||||
def __init__(self, dst, src, parent=None):
|
def __init__(self, src, dst, parent=None):
|
||||||
super(Edge, self).__init__(parent)
|
super(Edge, self).__init__(parent)
|
||||||
self._dst = dst
|
|
||||||
self._src = src
|
self._src = src
|
||||||
|
self._dst = dst
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def src(self):
|
def src(self):
|
||||||
|
@ -629,7 +629,7 @@ class Graph(BaseObject):
|
||||||
raise RuntimeError('The attributes of the edge should be part of a common graph.')
|
raise RuntimeError('The attributes of the edge should be part of a common graph.')
|
||||||
if dstAttr in self.edges.keys():
|
if dstAttr in self.edges.keys():
|
||||||
raise RuntimeError('Destination attribute "{}" is already connected.'.format(dstAttr.fullName()))
|
raise RuntimeError('Destination attribute "{}" is already connected.'.format(dstAttr.fullName()))
|
||||||
edge = Edge(dstAttr, srcAttr)
|
edge = Edge(srcAttr, dstAttr)
|
||||||
self.edges.add(edge)
|
self.edges.add(edge)
|
||||||
dstAttr.valueChanged.emit()
|
dstAttr.valueChanged.emit()
|
||||||
dstAttr.isLinkChanged.emit()
|
dstAttr.isLinkChanged.emit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue