mirror of
https://github.com/bevyengine/bevy
synced 2024-11-24 21:53:07 +00:00
don't clip text that is rotated (#15925)
# Objective - Fixes #15922 , #15853 - Don't clip text that is rotated by some angles ## Solution - Compare to the absolute size before clipping
This commit is contained in:
parent
af93e78b72
commit
812e599f77
1 changed files with 2 additions and 2 deletions
|
@ -1158,9 +1158,9 @@ pub fn prepare_uinodes(
|
|||
let transformed_rect_size =
|
||||
glyph.transform.transform_vector3(rect_size);
|
||||
if positions_diff[0].x - positions_diff[1].x
|
||||
>= transformed_rect_size.x
|
||||
>= transformed_rect_size.x.abs()
|
||||
|| positions_diff[1].y - positions_diff[2].y
|
||||
>= transformed_rect_size.y
|
||||
>= transformed_rect_size.y.abs()
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue