Skip to content

st/icon: Only get resource-scale after peeking theme node

If an actor is not on any stage view, then it doesn't have a valid resource scale, which will hit an assert later.

When that is the case (for example when running headless), we expect that there is no valid theme node (yet) either, so simply moving the clutter_actor_get_resource_scale() call after peeking at the theme node is enough to avoid the crash.

Fixes #4522 (closed)

Merge request reports