Skip to content

measure_text_system scale factor change detection watches the camera target's scale factor, not the text node's #17578

@ickshonpe

Description

@ickshonpe

Bevy version

main

What's wrong

measure_text_system queries for the camera entity of a text node and then using the camera entity looks up the camera target's scale factor. Then to detect if the scale factor has changed it looks up the camera's scale factor from the previous frame it keeps stored in a Local and compares them. But if the text node's target camera was changed since the previous frame it will be comparing the wrong scale factors and the text node's measure func won't be updated if its scale factor changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TextRendering and layout for charactersA-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions