mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-08 07:18:01 +00:00
Improve previewing node data (#1446)
* Improve preview * Improve contrast * Restructure in order to duplicate code * Code review nits --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
c823016316
commit
e0ac073805
18 changed files with 326 additions and 202 deletions
|
@ -1019,15 +1019,15 @@ impl NodeNetwork {
|
|||
// We filter out the newly inserted empty stack in case `resolve_empty_stacks` runs multiple times.
|
||||
for node in self.nodes.values_mut().filter(|node| node.name != EMPTY_STACK) {
|
||||
for input in &mut node.inputs {
|
||||
if matches!(
|
||||
input,
|
||||
NodeInput::Value {
|
||||
tagged_value: TaggedValue::GraphicGroup(GraphicGroup::EMPTY),
|
||||
..
|
||||
if let NodeInput::Value {
|
||||
tagged_value: TaggedValue::GraphicGroup(graphic_group),
|
||||
..
|
||||
} = input
|
||||
{
|
||||
if *graphic_group == GraphicGroup::EMPTY {
|
||||
*input = NodeInput::node(new_id, 0);
|
||||
used = true;
|
||||
}
|
||||
) {
|
||||
*input = NodeInput::node(new_id, 0);
|
||||
used = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue