mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-20 20:46:28 +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
|
@ -442,6 +442,13 @@ class Graph(BaseObject):
|
|||
|
||||
return inEdges, outEdges
|
||||
|
||||
def upgradeAllNodes(self):
|
||||
""" Upgrade all upgradable CompatibilityNode instances in the graph. """
|
||||
nodeNames = [name for name, n in self._compatibilityNodes.items() if n.canUpgrade]
|
||||
with GraphModification(self):
|
||||
for nodeName in nodeNames:
|
||||
self.upgradeNode(nodeName)
|
||||
|
||||
@Slot(str, result=Attribute)
|
||||
def attribute(self, fullName):
|
||||
# type: (str) -> Attribute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue