Fix graph UI culling on-screen nodes (#3380)

* fix

* review fixup
This commit is contained in:
Timon 2025-11-14 05:25:27 +00:00 committed by GitHub
parent ca5785bc8f
commit 3871b6c4cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -1614,8 +1614,7 @@ impl<'a> MessageHandler<NodeGraphMessage, NodeGraphMessageContext<'a>> for NodeG
return;
};
let viewport_bounds = viewport.bounds();
let viewport_bbox: [DVec2; 2] = viewport_bounds.into();
let viewport_bbox = [DVec2::ZERO, viewport.size().into_dvec2()];
let document_bbox: [DVec2; 2] = viewport_bbox.map(|p| network_metadata.persistent_metadata.navigation_metadata.node_graph_to_viewport.inverse().transform_point2(p));
let mut nodes = Vec::new();