[core] Propagate only if the node is already in a graph

This commit is contained in:
Fabien Castan 2024-06-28 20:11:49 +02:00
parent 3cc67fddfb
commit 2d950758e3

View file

@ -928,7 +928,8 @@ class BaseNode(BaseObject):
if callable(m):
m(self)
# Propage the notification to connected output attributes
if self.graph:
# If we are in a graph, propagate the notification to the connected output attributes
outEdges = self.graph.outEdges(attr)
for edge in outEdges:
edge.dst.onChanged()