mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-09 21:07:20 +02:00
[core][ui] add upgradeAllNodes methods
+ check if node is upgradable in UpgradeNodeCommand
This commit is contained in:
parent
8679fd8bf7
commit
dd3d9cd54b
4 changed files with 54 additions and 0 deletions
|
@ -270,6 +270,8 @@ class UpgradeNodeCommand(GraphCommand):
|
|||
self.setText("Upgrade Node {}".format(self.nodeName))
|
||||
|
||||
def redoImpl(self):
|
||||
if not self.graph.node(self.nodeName).canUpgrade:
|
||||
return False
|
||||
inEdges, self.outEdges = self.graph.upgradeNode(self.nodeName)
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue