Summary: After performing a Library Swap, frames with a specific variable mode ("Light") applied are rendering the incorrect mode ("Dark"), despite the UI indicating that the correct mode is selected.
Steps to Reproduce:
1. Open a file containing frames with variable modes applied (e.g., a "Light" mode from a specific Variable Collection).
2. Use the Swap Library feature to switch the source library to a new version/library with equivalent variables and modes.
3. Observe the frames that were previously set to "Light" mode.
4. Attempt to toggle the mode from "Light" to "Dark" and back to "Light" via the Layer panel.
Expected Behavior: Following the library swap, frames should correctly render the variables associated with the "Light" mode. If the UI says "Light," the visual output should match.
Actual Behavior: The frames render as "Dark" mode visually, even though the Layer settings panel explicitly shows "Light" as the active selection. Manually toggling the modes in the settings does not force a re-render.
Current Workaround: The issue is only resolved by the variable mode from the frame and then reapplying the variable mode "Light".
