Spritesheet Editor draws SVG sheets sharp when zoomed

vector_image_get takes an image and a scale, so the editor shares the
preview's per-zoom-level cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-08 17:48:41 -04:00
1 parent 54f62529e0
commit 5d274e547a
3 files changed
+12 -2

No files matched your search

+4 -1
View File
@@ -420,7 +420,10 @@ namespace anm2ed::imgui
auto spritesheetTransform = transform * spritesheetModel;
if (baseTexture && baseTexture->is_valid())
texture_render(shaderTexture, resource::texture::id_get(*baseTexture), spritesheetTransform);
texture_render(
shaderTexture,
resource::texture::id_get(*document.vector_image_get(baseTexture, math::percent_to_unit(zoom))),
spritesheetTransform);
if (isGrid) grid_render(shaderGrid, zoom, pan, gridSize, gridOffset, gridColor);