mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 23:38:06 +08:00
Migrate pass through and value node to identity implementation
This commit is contained in:
@@ -14,7 +14,7 @@ use graphene_std::Context;
|
||||
use graphene_std::GraphicElement;
|
||||
#[cfg(feature = "gpu")]
|
||||
use graphene_std::any::DowncastBothNode;
|
||||
use graphene_std::any::{ComposeTypeErased, DynAnyNode, IntoTypeErasedNode, Value};
|
||||
use graphene_std::any::{ComposeTypeErased, DynAnyNode, IdentityNode, IntoTypeErasedNode};
|
||||
use graphene_std::application_io::{ImageTexture, SurfaceFrame};
|
||||
#[cfg(feature = "gpu")]
|
||||
use graphene_std::wasm_application_io::{WasmEditorApi, WasmSurfaceHandle};
|
||||
@@ -115,10 +115,10 @@ fn node_registry() -> HashMap<ProtoNodeIdentifier, HashMap<NodeIOTypes, NodeCons
|
||||
),
|
||||
),
|
||||
(
|
||||
ProtoNodeIdentifier::new("graphene_core::any::ValueNode"),
|
||||
ProtoNodeIdentifier::new("graphene_std::any::IdentityNode"),
|
||||
|args| {
|
||||
Box::pin(async move {
|
||||
let node = Value::new(args[0].clone());
|
||||
let node = IdentityNode::new(args[0].clone());
|
||||
node.into_type_erased()
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user