Skip to content

Commit 3871b6c

Browse files
Fix graph UI culling on-screen nodes (#3380)
* fix * review fixup
1 parent ca5785b commit 3871b6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

editor/src/messages/portfolio/document/node_graph/node_graph_message_handler.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,8 +1614,7 @@ impl<'a> MessageHandler<NodeGraphMessage, NodeGraphMessageContext<'a>> for NodeG
16141614
return;
16151615
};
16161616

1617-
let viewport_bounds = viewport.bounds();
1618-
let viewport_bbox: [DVec2; 2] = viewport_bounds.into();
1617+
let viewport_bbox = [DVec2::ZERO, viewport.size().into_dvec2()];
16191618
let document_bbox: [DVec2; 2] = viewport_bbox.map(|p| network_metadata.persistent_metadata.navigation_metadata.node_graph_to_viewport.inverse().transform_point2(p));
16201619

16211620
let mut nodes = Vec::new();

0 commit comments

Comments
 (0)