mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-18 18:38:05 +08:00
Flip lend-parameter nodes onto record wires and keep the clone adapter plain
This commit is contained in:
@@ -29,8 +29,9 @@ fn unwrap_option<T: Default>(_: impl Ctx, #[implementations(Option<f64>, Option<
|
||||
input.unwrap_or_default()
|
||||
}
|
||||
|
||||
/// Clones the value borrowed from a lending edge. Doubles as the checker-inserted clone-out adapter.
|
||||
#[node_macro::node(category("Debug"))]
|
||||
/// Clones the value borrowed from a lending edge. Doubles as the checker-inserted clone-out
|
||||
/// adapter, so it keeps the plain lowering while the record transition runs.
|
||||
#[node_macro::node(category("Debug"), plain)]
|
||||
fn clone<T: Clone>(_: impl Ctx, #[implementations(List<Raster<CPU>>)] value: &T) -> T {
|
||||
value.clone()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user