Skip to content

Commit 8fd2790

Browse files
committed
[ui] graph: Add addAttributeKeyDefaultValue method
1 parent f6aa520 commit 8fd2790

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

meshroom/ui/graph.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,11 @@ def addAttributeKeyValue(self, attribute, key, value):
925925
""" Add the given (key, value) pair to the given keyable attribute. """
926926
self.push(commands.AddAttributeKeyValueCommand(self._graph, attribute, key, value))
927927

928+
@Slot(Attribute, str)
929+
def addAttributeKeyDefaultValue(self, attribute, key):
930+
""" Add the given key with the default value to the given keyable attribute. """
931+
self.push(commands.AddAttributeKeyValueCommand(self._graph, attribute, key, attribute.getDefaultValue()))
932+
928933
@Slot(CompatibilityNode, result=Node)
929934
def upgradeNode(self, node):
930935
""" Upgrade a CompatibilityNode. """

0 commit comments

Comments
 (0)