Skip to content

Commit

Permalink
fix spelling mistake (#15146)
Browse files Browse the repository at this point in the history
# Objective

Fix spelling mistake: `interned_root_notes` -> `interned_root_nodes`
  • Loading branch information
ickshonpe authored Sep 10, 2024
1 parent 4de67b5 commit cacf392
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/bevy_ui/src/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub struct UiLayoutSystemRemovedComponentParam<'w, 's> {
#[doc(hidden)]
#[derive(Default)]
pub struct UiLayoutSystemBuffers {
interned_root_notes: Vec<Vec<Entity>>,
interned_root_nodes: Vec<Vec<Entity>>,
resized_windows: EntityHashSet,
camera_layout_info: EntityHashMap<CameraLayoutInfo>,
}
Expand Down Expand Up @@ -122,7 +122,7 @@ pub fn ui_layout_system(
#[cfg(feature = "bevy_text")] mut text_pipeline: ResMut<TextPipeline>,
) {
let UiLayoutSystemBuffers {
interned_root_notes,
interned_root_nodes,
resized_windows,
camera_layout_info,
} = &mut *buffers;
Expand All @@ -147,7 +147,7 @@ pub fn ui_layout_system(
size,
resized,
scale_factor: scale_factor * ui_scale.0,
root_nodes: interned_root_notes.pop().unwrap_or_default(),
root_nodes: interned_root_nodes.pop().unwrap_or_default(),
}
};

Expand Down Expand Up @@ -280,7 +280,7 @@ pub fn ui_layout_system(
}

camera.root_nodes.clear();
interned_root_notes.push(camera.root_nodes);
interned_root_nodes.push(camera.root_nodes);
}

fn update_uinode_geometry_recursive(
Expand Down

0 comments on commit cacf392

Please sign in to comment.