mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 15:38:13 +08:00
Switch the tagged list values and layer internals onto leveled wires
This commit is contained in:
@@ -376,13 +376,10 @@ impl ProtoNetwork {
|
||||
let layout = {
|
||||
let node = &self.nodes[index].1;
|
||||
match &node.construction_args {
|
||||
ConstructionArgs::Value(value) => value.element_write().map(|element| {
|
||||
let layout = core_types::record::Layout::default().with_writes(0, element, &[]);
|
||||
core_types::record::RecordLayout {
|
||||
frame_bytes: layout.frame_bytes(),
|
||||
plan: Vec::new(),
|
||||
layout,
|
||||
}
|
||||
ConstructionArgs::Value(value) => value.value_layout().map(|layout| core_types::record::RecordLayout {
|
||||
frame_bytes: layout.frame_bytes(),
|
||||
plan: Vec::new(),
|
||||
layout,
|
||||
}),
|
||||
ConstructionArgs::Nodes(inputs) => node.resolved.layout_meta.as_ref().and_then(|meta| {
|
||||
let input_layouts: Vec<Option<&core_types::record::Layout>> =
|
||||
|
||||
Reference in New Issue
Block a user