Skip to content

Commit 4348acd

Browse files
committed
[ui] graph: Add removeAttributeKey method
1 parent 8fd2790 commit 4348acd

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
@@ -930,6 +930,11 @@ def addAttributeKeyDefaultValue(self, attribute, key):
930930
""" Add the given key with the default value to the given keyable attribute. """
931931
self.push(commands.AddAttributeKeyValueCommand(self._graph, attribute, key, attribute.getDefaultValue()))
932932

933+
@Slot(Attribute, str)
934+
def removeAttributeKey(self, attribute, key):
935+
""" Remove the given key from the given keyable attribute. """
936+
self.push(commands.RemoveAttributeKeyCommand(self._graph, attribute, key))
937+
933938
@Slot(CompatibilityNode, result=Node)
934939
def upgradeNode(self, node):
935940
""" Upgrade a CompatibilityNode. """

0 commit comments

Comments
 (0)