Fix entity leak in extract_uinode_borders (#15626)

# Objective

Fix for another leak, this time when extracting outlines.
This commit is contained in:
ickshonpe 2024-10-03 19:15:32 +01:00 committed by GitHub
parent 336c23c1aa
commit 9bb27e97c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -409,7 +409,7 @@ pub fn extract_uinode_borders(
if let Some(outline) = maybe_outline {
let outline_size = uinode.outlined_node_size();
extracted_uinodes.uinodes.insert(
commands.spawn_empty().id(),
commands.spawn(TemporaryRenderEntity).id(),
ExtractedUiNode {
stack_index: uinode.stack_index,
transform: global_transform.compute_matrix(),