mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 06:38:03 +08:00
Code review, remove identity test
This commit is contained in:
@@ -20,13 +20,7 @@ mod tests {
|
||||
NodeId(0),
|
||||
DocumentNode {
|
||||
inputs: vec![NodeInput::network(concrete!(u32), 0)],
|
||||
<<<<<<< HEAD
|
||||
implementation: DocumentNodeImplementation::ProtoNode(ops::identity::IDENTIFIER),
|
||||
||||||| parent of 8e045313 (Migrate pass through and value node to identity implementation)
|
||||
implementation: DocumentNodeImplementation::ProtoNode(ProtoNodeIdentifier::new("graphene_core::ops::IdentityNode")),
|
||||
=======
|
||||
implementation: DocumentNodeImplementation::ProtoNode(ProtoNodeIdentifier::new("graphene_std::any::IdentityNode")),
|
||||
>>>>>>> 8e045313 (Migrate pass through and value node to identity implementation)
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
|
||||
@@ -14,8 +14,9 @@ use graphene_std::Context;
|
||||
use graphene_std::GraphicElement;
|
||||
#[cfg(feature = "gpu")]
|
||||
use graphene_std::any::DowncastBothNode;
|
||||
use graphene_std::any::{ComposeTypeErased, DynAnyNode, IdentityNode, IntoTypeErasedNode};
|
||||
use graphene_std::any::{ComposeTypeErased, DynAnyNode, IntoTypeErasedNode};
|
||||
use graphene_std::application_io::{ImageTexture, SurfaceFrame};
|
||||
use graphene_std::ops::IdentityNode;
|
||||
#[cfg(feature = "gpu")]
|
||||
use graphene_std::wasm_application_io::{WasmEditorApi, WasmSurfaceHandle};
|
||||
use node_registry_macros::{async_node, convert_node, into_node};
|
||||
@@ -115,7 +116,7 @@ fn node_registry() -> HashMap<ProtoNodeIdentifier, HashMap<NodeIOTypes, NodeCons
|
||||
),
|
||||
),
|
||||
(
|
||||
ProtoNodeIdentifier::new("graphene_std::any::IdentityNode"),
|
||||
graphene_std::ops::identity::IDENTIFIER,
|
||||
|args| {
|
||||
Box::pin(async move {
|
||||
let node = IdentityNode::new(args[0].clone());
|
||||
|
||||
@@ -68,13 +68,7 @@ pub fn wrap_network_in_scope(mut network: NodeNetwork, editor_api: Arc<WasmEdito
|
||||
inner_network,
|
||||
render_node,
|
||||
DocumentNode {
|
||||
<<<<<<< HEAD
|
||||
implementation: DocumentNodeImplementation::ProtoNode(graphene_std::ops::identity::IDENTIFIER),
|
||||
||||||| parent of 8e045313 (Migrate pass through and value node to identity implementation)
|
||||
implementation: DocumentNodeImplementation::proto("graphene_core::ops::IdentityNode"),
|
||||
=======
|
||||
implementation: DocumentNodeImplementation::proto("graphene_std::any::IdentityNode"),
|
||||
>>>>>>> 8e045313 (Migrate pass through and value node to identity implementation)
|
||||
inputs: vec![NodeInput::value(TaggedValue::EditorApi(editor_api), false)],
|
||||
..Default::default()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user