mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-22 05:26:29 +02:00
[ui] GraphEditor: Import pipeline on the mouse's position with the node menu
If a pipeline is imported with the node menu instead of the "Import Project" action from the File menu, the top-left "corner" of the graph should be placed on the mouse's position. The position of pipelines imported with the "Import Project" menu remains unchanged: they are automatically placed below the lowest node in the current graph.
This commit is contained in:
parent
04ab813cef
commit
c2570ca0fb
3 changed files with 12 additions and 5 deletions
|
@ -240,7 +240,7 @@ Item {
|
|||
|
||||
if (pipelineNames.includes(pipeline)) {
|
||||
var url = Filepath.stringToUrl(pipelinePaths[pipelineNames.indexOf(pipeline)])
|
||||
uigraph.importProject(url)
|
||||
uigraph.importProject(url, spawnPosition)
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue