mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 00:08:29 +02:00
[ui][commands] expose UpgradeNode command
This commit is contained in:
parent
1d309136ec
commit
a18d75c0f9
2 changed files with 34 additions and 1 deletions
|
@ -9,7 +9,7 @@ from PySide2.QtCore import Slot, QJsonValue, QObject, QUrl, Property, Signal
|
|||
from meshroom.common.qt import QObjectListModel
|
||||
from meshroom.core.attribute import Attribute, ListAttribute
|
||||
from meshroom.core.graph import Graph, Edge, submitGraph, executeGraph
|
||||
from meshroom.core.node import NodeChunk, Node, Status
|
||||
from meshroom.core.node import NodeChunk, Node, Status, CompatibilityNode
|
||||
from meshroom.ui import commands
|
||||
|
||||
|
||||
|
@ -353,6 +353,11 @@ class UIGraph(QObject):
|
|||
"""
|
||||
return self.duplicateNodesFromNode(fromNode).values()
|
||||
|
||||
@Slot(CompatibilityNode)
|
||||
def upgradeNode(self, node):
|
||||
""" Upgrade a CompatibilityNode. """
|
||||
self.push(commands.UpgradeNodeCommand(self._graph, node))
|
||||
|
||||
@Slot(Attribute, QJsonValue)
|
||||
def appendAttribute(self, attribute, value=QJsonValue()):
|
||||
if isinstance(value, QJsonValue):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue