[ui/core] Count for loop added on nodes in graph

This commit is contained in:
Aurore LAFAURIE 2024-08-22 14:00:29 +02:00
parent 91ebc1619c
commit 32b0ed5c8b
4 changed files with 36 additions and 0 deletions

View file

@ -899,6 +899,7 @@ class Graph(BaseObject):
dstAttr.valueChanged.emit()
dstAttr.isLinkChanged.emit()
srcAttr.hasOutputConnectionsChanged.emit()
dstAttr.node.countForLoopChanged.emit()
return edge
def addEdges(self, *edges):
@ -915,6 +916,7 @@ class Graph(BaseObject):
dstAttr.valueChanged.emit()
dstAttr.isLinkChanged.emit()
edge.src.hasOutputConnectionsChanged.emit()
dstAttr.node.countForLoopChanged.emit()
def getDepth(self, node, minimal=False):
""" Return node's depth in this Graph.
@ -1485,6 +1487,7 @@ class Graph(BaseObject):
nodes, edges = self.dfsOnDiscover(startNodes=[fromNode], reverse=True)
for node in nodes:
node.dirty = True
node.countForLoopChanged.emit()
def stopExecution(self):
""" Request graph execution to be stopped by terminating running chunks"""