Require ContentSize for UiImage (#16262)

# Objective

Automatic imaging sizing for image nodes isn't working because the the
`ContentSize` requirement for `UiImage` got lost in some merge again.

Fixes #16239 
Fixes #16240 
Fixes the missing images seen in #16241

## Solution

Require `ContentSize` for `UiImage`.
This commit is contained in:
ickshonpe 2024-11-06 14:56:28 +00:00 committed by GitHub
parent eb558bbf77
commit 619c5e3bda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ use taffy::{MaybeMath, MaybeResolve};
/// The 2D texture displayed for this UI node
#[derive(Component, Clone, Debug, Reflect)]
#[reflect(Component, Default, Debug)]
#[require(Node, UiImageSize)]
#[require(Node, UiImageSize, ContentSize)]
pub struct UiImage {
/// The tint color used to draw the image.
///