Skip to content

Commit dbf917e

Browse files
0HyperCubeKeavon
andauthored
Fix a minor regression in monitor nodes with VectorData (#2237)
* Fix a minor regression in monitor nodes with VectorData * Use type alias instead of full type --------- Co-authored-by: Keavon Chambers <[email protected]>
1 parent 95f6bb8 commit dbf917e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

editor/src/node_graph_executor.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ use graphene_core::text::FontCache;
1616
use graphene_core::transform::Footprint;
1717
use graphene_core::vector::style::ViewMode;
1818
use graphene_std::renderer::{format_transform_matrix, RenderMetadata};
19-
use graphene_std::vector::VectorData;
19+
use graphene_std::vector::{VectorData, VectorDataTable};
2020
use graphene_std::wasm_application_io::{WasmApplicationIo, WasmEditorApi};
2121
use interpreted_executor::dynamic_executor::{DynamicExecutor, IntrospectError, ResolvedDocumentNodeTypesDelta};
22+
use interpreted_executor::util::wrap_network_in_scope;
2223

2324
use glam::{DAffine2, DVec2, UVec2};
24-
use interpreted_executor::util::wrap_network_in_scope;
2525
use once_cell::sync::Lazy;
2626
use spin::Mutex;
2727
use std::sync::mpsc::{Receiver, Sender};
@@ -296,10 +296,10 @@ impl NodeRuntime {
296296
Self::process_graphic_element(&mut self.thumbnail_renders, parent_network_node_id, &io.output, responses, update_thumbnails)
297297
}
298298
// Insert the vector modify if we are dealing with vector data
299-
else if let Some(record) = introspected_data.downcast_ref::<IORecord<Footprint, VectorData>>() {
300-
self.vector_modify.insert(parent_network_node_id, record.output.clone());
301-
} else if let Some(record) = introspected_data.downcast_ref::<IORecord<(), VectorData>>() {
302-
self.vector_modify.insert(parent_network_node_id, record.output.clone());
299+
else if let Some(record) = introspected_data.downcast_ref::<IORecord<Footprint, VectorDataTable>>() {
300+
self.vector_modify.insert(parent_network_node_id, record.output.one_item().clone());
301+
} else if let Some(record) = introspected_data.downcast_ref::<IORecord<(), VectorDataTable>>() {
302+
self.vector_modify.insert(parent_network_node_id, record.output.one_item().clone());
303303
}
304304
}
305305
}

0 commit comments

Comments
 (0)