mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-10 20:11:49 +00:00
For models with `supportsNewAspectRatio()`, the picker only stored a `CommonAspectRatio` in local state for the API request payload — it never called `onAspectRatioSelect`, so the editor's render-camera aspect and the Letterbox stayed on the previous setting. Wrap the picker's callback to also map the chosen `CommonAspectRatio` to the closest `CameraAspectRatio` and forward it through `onAspectRatioSelect`. `Auto*` ratios have no fixed shape, so they leave the letterbox alone.