mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
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:
committed by
Keavon Chambers
parent
d969a4d797
commit
b660df84ba
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user