Skip to content

Commit 473177f

Browse files
committed
Small code tidying-up
1 parent b0ef58f commit 473177f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

node-graph/gcore/src/graphic_element/renderer.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,10 @@ impl GraphicElementRendered for GraphicGroupTable {
339339

340340
fn collect_metadata(&self, metadata: &mut RenderMetadata, footprint: Footprint, element_id: Option<NodeId>) {
341341
for instance in self.instances() {
342-
let mut footprint = footprint;
343-
footprint.transform *= *instance.transform;
344-
345342
if let Some(element_id) = instance.source_node_id {
343+
let mut footprint = footprint;
344+
footprint.transform *= *instance.transform;
345+
346346
instance.instance.collect_metadata(metadata, footprint, Some(*element_id));
347347
}
348348
}
@@ -352,7 +352,6 @@ impl GraphicElementRendered for GraphicGroupTable {
352352

353353
for instance in self.instances() {
354354
let mut new_click_targets = Vec::new();
355-
356355
instance.instance.add_upstream_click_targets(&mut new_click_targets);
357356

358357
for click_target in new_click_targets.iter_mut() {

0 commit comments

Comments
 (0)