mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-14 08:41:58 +02:00
[core] Propagate only if the node is already in a graph
This commit is contained in:
parent
3cc67fddfb
commit
2d950758e3
1 changed files with 5 additions and 4 deletions
|
@ -928,10 +928,11 @@ class BaseNode(BaseObject):
|
||||||
if callable(m):
|
if callable(m):
|
||||||
m(self)
|
m(self)
|
||||||
|
|
||||||
# Propage the notification to connected output attributes
|
if self.graph:
|
||||||
outEdges = self.graph.outEdges(attr)
|
# If we are in a graph, propagate the notification to the connected output attributes
|
||||||
for edge in outEdges:
|
outEdges = self.graph.outEdges(attr)
|
||||||
edge.dst.onChanged()
|
for edge in outEdges:
|
||||||
|
edge.dst.onChanged()
|
||||||
|
|
||||||
def onAttributeClicked(self, attr):
|
def onAttributeClicked(self, attr):
|
||||||
""" When an attribute is clicked, a specific function can be defined in the descriptor and be called.
|
""" When an attribute is clicked, a specific function can be defined in the descriptor and be called.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue