mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-02 11:46:45 +02:00
[GraphEditor] Eye on displayable node even if not computed
This commit is contained in:
parent
adbd6426ca
commit
c95afc8179
1 changed files with 5 additions and 4 deletions
|
@ -328,10 +328,11 @@ Item {
|
||||||
MaterialLabel {
|
MaterialLabel {
|
||||||
id: nodeImageOutput
|
id: nodeImageOutput
|
||||||
visible: (node.hasImageOutput || node.has3DOutput)
|
visible: (node.hasImageOutput || node.has3DOutput)
|
||||||
&& ((["SUCCESS"].includes(node.globalStatus) && node.chunks.count > 0) || !node.isComputable)
|
|
||||||
text: MaterialIcons.visibility
|
text: MaterialIcons.visibility
|
||||||
padding: 2
|
padding: 2
|
||||||
font.pointSize: 7
|
font.pointSize: 7
|
||||||
|
property bool displayable: ((["SUCCESS"].includes(node.globalStatus) && node.chunks.count > 0) || !node.isComputable)
|
||||||
|
color: displayable ? palette.text : Qt.darker(palette.text, 1.8)
|
||||||
|
|
||||||
ToolTip {
|
ToolTip {
|
||||||
id: nodeImageOutputTooltip
|
id: nodeImageOutputTooltip
|
||||||
|
@ -339,11 +340,11 @@ Item {
|
||||||
visible: nodeImageOutputMA.containsMouse && nodeImageOutput.visible
|
visible: nodeImageOutputMA.containsMouse && nodeImageOutput.visible
|
||||||
text: {
|
text: {
|
||||||
if (node.hasImageOutput && !node.has3DOutput)
|
if (node.hasImageOutput && !node.has3DOutput)
|
||||||
return "Double-click on this node to load its outputs in the Image Viewer."
|
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)
|
||||||
return "Double-click on this node to load its outputs in the 3D Viewer."
|
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
|
else // Handle case where a node might have both 2D and 3D outputs
|
||||||
return "Double-click on this node to load its outputs in the Image or 3D Viewer."
|
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."
|
||||||
}
|
}
|
||||||
implicitWidth: 500
|
implicitWidth: 500
|
||||||
delay: 300
|
delay: 300
|
||||||
|
|
Loading…
Add table
Reference in a new issue