Skip to content

Commit 75f1c5d

Browse files
authored
UI: pass the untransformed node size to the shader (#12839)
# Objective - #12500 broke rotating ui nodes, see examples `pbr` (missing "metallic" label) or `overflow_debug` (bottom right box is empty) ## Solution - Pass the untransformed node size to the shader
1 parent 92928f1 commit 75f1c5d

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_ui/src/render

1 file changed

+1
-1
lines changed

crates/bevy_ui/src/render/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ pub fn prepare_uinodes(
11421142
flags: flags | shader_flags::CORNERS[i],
11431143
radius: extracted_uinode.border_radius,
11441144
border: extracted_uinode.border,
1145-
size: transformed_rect_size.xy().into(),
1145+
size: rect_size.xy().into(),
11461146
});
11471147
}
11481148

0 commit comments

Comments
 (0)