mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-06 22:38:00 +00:00
Loosen the Graphene type system to allow contravariant function arguments (#1740)
* Accept any input for nodes that expect () as input * Add comments * More comments --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
07fd2c2782
commit
ce96ae66f2
5 changed files with 54 additions and 293 deletions
|
@ -969,7 +969,7 @@ impl NodeNetwork {
|
|||
return;
|
||||
}
|
||||
|
||||
// replace value inputs with value nodes
|
||||
// Replace value inputs with value nodes
|
||||
for input in node.inputs.iter_mut() {
|
||||
// Skip inputs that are already value nodes
|
||||
if node.implementation == DocumentNodeImplementation::ProtoNode("graphene_core::value::ClonedNode".into()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue