Fix tests

This commit is contained in:
Adam
2025-07-15 11:54:20 -07:00
parent da22edbe1a
commit 04ff7b75e5
8 changed files with 23 additions and 25 deletions

View File

@@ -93,9 +93,12 @@ where
drop(cache_guard);
let fut = self.node.eval(input);
let cache = self.cache.clone();
Box::pin(async move {
let value = self.node.eval(input).await;
*self.cache.lock().unwrap() = Some((hash, Arc::new(value.clone())));
let value = fut.await;
*cache.lock().unwrap() = Some((hash, Arc::new(value.clone())));
value
})
}

View File

@@ -1,12 +1,12 @@
use crate::instances::{InstanceRef, Instances};
use crate::raster_types::{CPU, RasterDataTable};
use crate::vector::VectorDataTable;
use crate::{ Context, Ctx, ExtractIndex, ExtractVarArgs, GraphicElement, GraphicGroupTable, WithIndex};
use crate::{Context, Ctx, ExtractIndex, ExtractVarArgs, GraphicElement, GraphicGroupTable, WithIndex};
use glam::DVec2;
#[node_macro::node(name("Instance on Points"), category("Instancing"), path(graphene_core::vector))]
async fn instance_on_points<T: Into<GraphicElement> + Default + Send + Clone + 'static>(
ctx: impl Ctx + WithIndex,
ctx: impl Ctx + WithIndex + Sync,
points: VectorDataTable,
#[implementations(
Context -> GraphicGroupTable,