mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 09:47:20 +02:00
[GraphEditor] Only display "Pipelines" menu when templates are available
In the node menu (displayed when pressing "Tab" or right-clicking in the Graph Editor), the "Pipelines" menu entry used to be displayed even if there was no available template (the entry would open to display an empty list). This commit adds a check to ensure that the "Pipelines" menu is only added to the node menu if there is at least one template that is available. Otherwise, it is not displayed.
This commit is contained in:
parent
b29bcfe0c5
commit
1fbf42a3f4
1 changed files with 3 additions and 1 deletions
|
@ -237,7 +237,9 @@ Item {
|
|||
}
|
||||
|
||||
// Add a "Pipelines" category, filled with the list of templates to create pipelines from the menu
|
||||
categories["Pipelines"] = MeshroomApp.pipelineTemplateNames
|
||||
if (MeshroomApp.pipelineTemplateNames.length > 0) {
|
||||
categories["Pipelines"] = MeshroomApp.pipelineTemplateNames
|
||||
}
|
||||
|
||||
return categories
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue