mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
Add bounding box node (#1376)
* Add bounding box node Generates a rectangle based on the bounding box of the input vector data * Remove redundant <> * Fix formatting --------- Co-authored-by: Dennis Kobert <dennis@kobert.dev>
This commit is contained in:
@@ -307,7 +307,7 @@ impl ProtoNetwork {
|
||||
let outwards_edges = self.collect_outwards_edges();
|
||||
|
||||
for index in 0..self.nodes.len() {
|
||||
let Some(sni) = self.nodes[index].1.stable_node_id() else {
|
||||
let Some(sni) = self.nodes[index].1.stable_node_id() else {
|
||||
panic!("failed to generate stable node id for node {:#?}", self.nodes[index].1);
|
||||
};
|
||||
self.replace_node_id(&outwards_edges, index as NodeId, sni, false);
|
||||
|
||||
Reference in New Issue
Block a user