mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-21 21:16:29 +02:00
[core] add "Attribute.hasOutputConnections" property
Give access to whether an attribute has output connections.
This commit is contained in:
parent
f1267d7e67
commit
fcb2b23c1a
2 changed files with 17 additions and 2 deletions
|
@ -585,6 +585,7 @@ class Graph(BaseObject):
|
|||
self.markNodesDirty(dstAttr.node)
|
||||
dstAttr.valueChanged.emit()
|
||||
dstAttr.isLinkChanged.emit()
|
||||
srcAttr.hasOutputConnectionsChanged.emit()
|
||||
return edge
|
||||
|
||||
def addEdges(self, *edges):
|
||||
|
@ -596,10 +597,11 @@ class Graph(BaseObject):
|
|||
def removeEdge(self, dstAttr):
|
||||
if dstAttr not in self.edges.keys():
|
||||
raise RuntimeError('Attribute "{}" is not connected'.format(dstAttr.getFullName()))
|
||||
self.edges.pop(dstAttr)
|
||||
edge = self.edges.pop(dstAttr)
|
||||
self.markNodesDirty(dstAttr.node)
|
||||
dstAttr.valueChanged.emit()
|
||||
dstAttr.isLinkChanged.emit()
|
||||
edge.src.hasOutputConnectionsChanged.emit()
|
||||
|
||||
def getDepth(self, node, minimal=False):
|
||||
""" Return node's depth in this Graph.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue