mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-06 20:28:13 +08:00
Eval nodes with None instead of relying on MemoImpure
This commit is contained in:
@@ -246,10 +246,10 @@ async fn render<'a: 'n, T: 'n + GraphicElementRendered + WasmNotSend>(
|
|||||||
let render_params = RenderParams::new(render_config.view_mode, None, false, hide_artboards, for_export);
|
let render_params = RenderParams::new(render_config.view_mode, None, false, hide_artboards, for_export);
|
||||||
|
|
||||||
let data = data.eval(ctx.clone()).await;
|
let data = data.eval(ctx.clone()).await;
|
||||||
let editor_api = editor_api.eval(ctx.clone()).await;
|
let editor_api = editor_api.eval(None).await;
|
||||||
|
|
||||||
#[cfg(all(feature = "vello", target_arch = "wasm32"))]
|
#[cfg(all(feature = "vello", target_arch = "wasm32"))]
|
||||||
let surface_handle = _surface_handle.eval(ctx.clone()).await;
|
let surface_handle = _surface_handle.eval(None).await;
|
||||||
|
|
||||||
let use_vello = editor_api.editor_preferences.use_vello();
|
let use_vello = editor_api.editor_preferences.use_vello();
|
||||||
#[cfg(all(feature = "vello", target_arch = "wasm32"))]
|
#[cfg(all(feature = "vello", target_arch = "wasm32"))]
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ pub fn wrap_network_in_scope(mut network: NodeNetwork, editor_api: Arc<WasmEdito
|
|||||||
DocumentNode {
|
DocumentNode {
|
||||||
manual_composition: Some(concrete!(Context)),
|
manual_composition: Some(concrete!(Context)),
|
||||||
inputs: vec![NodeInput::node(NodeId(0), 0)],
|
inputs: vec![NodeInput::node(NodeId(0), 0)],
|
||||||
implementation: DocumentNodeImplementation::ProtoNode(ProtoNodeIdentifier::new("graphene_core::memo::ImpureMemoNode")),
|
implementation: DocumentNodeImplementation::ProtoNode(ProtoNodeIdentifier::new("graphene_core::memo::MemoNode")),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
// TODO: Add conversion step
|
// TODO: Add conversion step
|
||||||
|
|||||||
Reference in New Issue
Block a user