[ui] Eye displayed for node with sequence output

This commit is contained in:
Aurore LAFAURIE 2024-06-17 16:01:07 +02:00
parent aacacb1d65
commit 9acc0a7492

View file

@ -327,7 +327,7 @@ Item {
MaterialLabel {
id: nodeImageOutput
visible: (node.hasImageOutput || node.has3DOutput)
visible: (node.hasImageOutput || node.has3DOutput || node.hasSequenceOutput)
text: MaterialIcons.visibility
padding: 2
font.pointSize: 7
@ -339,9 +339,9 @@ Item {
parent: header
visible: nodeImageOutputMA.containsMouse && nodeImageOutput.visible
text: {
if (node.hasImageOutput && !node.has3DOutput)
if ((node.hasImageOutput || node.hasSequenceOutput) && !node.has3DOutput)
return nodeImageOutput.displayable ? "Double-click on this node to load its outputs in the Image Viewer." : "This node has image outputs."
else if (node.has3DOutput && !node.hasImageOutput)
else if (node.has3DOutput && !node.hasImageOutput && !node.hasSequenceOutput)
return nodeImageOutput.displayable ? "Double-click on this node to load its outputs in the 3D Viewer." : "This node has 3D outputs."
else // Handle case where a node might have both 2D and 3D outputs
return nodeImageOutput.displayable ? "Double-click on this node to load its outputs in the Image or 3D Viewer." : "This node has image and 3D outputs."