Node 'Disable' and 'Preview' UX improvements (#918)

* Don't allow disabling input or output nodes

* Shortcuts to show and preview node

* Update preview tooltip and label

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0HyperCube
2022-12-28 19:38:35 +00:00
committed by Keavon Chambers
parent 509aab72c1
commit c552edd525
6 changed files with 81 additions and 43 deletions

View File

@@ -277,6 +277,11 @@ impl NodeNetwork {
nodes,
}
}
/// Get the original output node of this network, ignoring any preview node
pub fn original_output(&self) -> NodeId {
self.previous_output.unwrap_or(self.output)
}
}
#[cfg(test)]