mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-22 21:46:28 +02:00
[ui][commands] Duplicate/UpgradeNode: return created Node instances
This commit is contained in:
parent
734540abba
commit
830173047c
3 changed files with 9 additions and 9 deletions
|
@ -417,10 +417,10 @@ class UIGraph(QObject):
|
|||
"""
|
||||
return self.push(commands.DuplicateNodeCommand(self._graph, srcNode, duplicateFollowingNodes))
|
||||
|
||||
@Slot(CompatibilityNode)
|
||||
@Slot(CompatibilityNode, result=Node)
|
||||
def upgradeNode(self, node):
|
||||
""" Upgrade a CompatibilityNode. """
|
||||
self.push(commands.UpgradeNodeCommand(self._graph, node))
|
||||
return self.push(commands.UpgradeNodeCommand(self._graph, node))
|
||||
|
||||
@Slot()
|
||||
def upgradeAllNodes(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue