mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-01 11:17:53 +02:00
[ui] Graph Editor: fix remaining use of deleted function
This commit is contained in:
parent
107b1e959a
commit
d11a1f62cc
1 changed files with 3 additions and 13 deletions
|
@ -59,15 +59,6 @@ Item {
|
||||||
return undefined
|
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
|
/// Duplicate a node and optionally all the following ones
|
||||||
function duplicateNode(duplicateFollowingNodes) {
|
function duplicateNode(duplicateFollowingNodes) {
|
||||||
var nodes
|
var nodes
|
||||||
|
@ -219,14 +210,13 @@ Item {
|
||||||
height: searchBar.height + nodeMenuRepeater.height + instantiator.height
|
height: searchBar.height + nodeMenuRepeater.height + instantiator.height
|
||||||
|
|
||||||
function createNode(nodeType) {
|
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
|
// "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 it is not a pipeline to import, then it must be a node
|
||||||
if (!importPipeline(nodeType)) {
|
if (!importPipeline(nodeType)) {
|
||||||
// Add node via the proper command in uigraph
|
// Add node via the proper command in uigraph
|
||||||
var node = uigraph.addNewNode(nodeType, spawnPosition)
|
var node = uigraph.addNewNode(nodeType, spawnPosition);
|
||||||
selectNode(node)
|
uigraph.selectedNode = node;
|
||||||
|
uigraph.selectNodes([node])
|
||||||
}
|
}
|
||||||
close()
|
close()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue