[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:
Candice Bentéjac 2025-02-19 15:14:27 +01:00
parent b29bcfe0c5
commit 1fbf42a3f4

View file

@ -237,7 +237,9 @@ Item {
}
// Add a "Pipelines" category, filled with the list of templates to create pipelines from the menu
if (MeshroomApp.pipelineTemplateNames.length > 0) {
categories["Pipelines"] = MeshroomApp.pipelineTemplateNames
}
return categories
}