Skip to content

Commit 0231fdc

Browse files
committed
[core] Discard nested attribute for valueChange callback lookup
1 parent 7fdb5cc commit 0231fdc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

meshroom/core/node.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,10 @@ def _updateChunks(self):
933933
def _getAttributeChangedCallback(self, attr: Attribute) -> Optional[Callable]:
934934
"""Get the node descriptor-defined value changed callback associated to `attr` if any."""
935935

936+
# Callbacks cannot be defined on nested attributes.
937+
if attr.root is not None:
938+
return None
939+
936940
attrCapitalizedName = attr.name[:1].upper() + attr.name[1:]
937941
callbackName = f"on{attrCapitalizedName}Changed"
938942

0 commit comments

Comments
 (0)