mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 09:56:32 +02:00
[core] Node: Propagate attribute change via valueChanged
signal
Propagate attribute value changes downstream using `valueChanged` signal emission, instead of calling `_onAttributeChanged` directly. This does not change the current core behavior, but it triggers the property notification signal when in UI mode. This makes changes happening upstream properly reflected in downstream nodes.
This commit is contained in:
parent
1f42ad3553
commit
1aea45efa3
1 changed files with 1 additions and 1 deletions
|
@ -980,7 +980,7 @@ class BaseNode(BaseObject):
|
|||
if self.graph:
|
||||
# If we are in a graph, propagate the notification to the connected output attributes
|
||||
for edge in self.graph.outEdges(attr):
|
||||
edge.dst.node._onAttributeChanged(edge.dst)
|
||||
edge.dst.valueChanged.emit()
|
||||
|
||||
def onAttributeClicked(self, attr):
|
||||
""" 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