Skip to content

Commit

Permalink
[ui] Graph Editor: fix remaining use of deleted function
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-lty committed Nov 25, 2024
1 parent 066ed47 commit c552c05
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions meshroom/ui/qml/GraphEditor/GraphEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ Item {
return undefined
}

/// Select node delegate
function selectNode(node) {
uigraph.selectedNode = node
if (node !== null) {
uigraph.appendSelection(node)
uigraph.selectedNodesChanged()
}
}

/// Duplicate a node and optionally all the following ones
function duplicateNode(duplicateFollowingNodes) {
var nodes
Expand Down Expand Up @@ -214,14 +205,13 @@ Item {
height: searchBar.height + nodeMenuRepeater.height + instantiator.height

function createNode(nodeType) {
uigraph.clearNodeSelection() // Ensures that only the created node / imported pipeline will be selected

// "nodeType" might be a pipeline (artificially added in the "Pipelines" category) instead of a node
// If it is not a pipeline to import, then it must be a node
if (!importPipeline(nodeType)) {
// Add node via the proper command in uigraph
var node = uigraph.addNewNode(nodeType, spawnPosition)
selectNode(node)
var node = uigraph.addNewNode(nodeType, spawnPosition);
uigraph.selectedNode = node;
uigraph.selectNodes([node])
}
close()
}
Expand Down

0 comments on commit c552c05

Please sign in to comment.