Skip to content

compiler: Support animations on global properties in LLR#11944

Open
ImFeH2 wants to merge 1 commit into
slint-ui:masterfrom
ImFeH2:issue-9961
Open

compiler: Support animations on global properties in LLR#11944
ImFeH2 wants to merge 1 commit into
slint-ui:masterfrom
ImFeH2:issue-9961

Conversation

@ImFeH2

@ImFeH2 ImFeH2 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Before, remove_aliases move animation from an alias property to the global property it aliases. The interpreter already handled that, but the LLR/codegen path still assumed that global properties don't have animations, which caused a panic.

This keeps the animation on the lowered GlobalComponent and expose it through property_info(), so generated setters can still use set_animated_value(). The remove_unused pass and pretty_printer now handle the animation map as well.

Fixes: #9961

The repro case compiled as a Rust app now matches the viewer behavior: the global property update animates instead of panicking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiler panic when having an animation on a property alias to a global

1 participant