mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 22:18:33 +00:00
Fix errors in the doc comment for UiSurface::upsert_node
. (#8796)
# Objective
"Retrieves the taffy node corresponding to given entity exists" 😓
This commit is contained in:
parent
b559e9b6b4
commit
dc3de5f9b8
1 changed files with 2 additions and 2 deletions
|
@ -73,8 +73,8 @@ impl Default for UiSurface {
|
|||
}
|
||||
|
||||
impl UiSurface {
|
||||
/// Retrieves the taffy node corresponding to given entity exists, or inserts a new taffy node into the layout if no corresponding node exists.
|
||||
/// Then convert the given `Style` and use it update the taffy node's style.
|
||||
/// Retrieves the Taffy node associated with the given UI node entity and updates its style.
|
||||
/// If no associated Taffy node exists a new Taffy node is inserted into the Taffy layout.
|
||||
pub fn upsert_node(&mut self, entity: Entity, style: &Style, context: &LayoutContext) {
|
||||
let mut added = false;
|
||||
let taffy = &mut self.taffy;
|
||||
|
|
Loading…
Add table
Reference in a new issue