Diagnose Analyze silent failure when sourceImage is nil

This commit is contained in:
Cidwel Highwind 2026-04-05 14:02:36 +02:00
parent 6a97dbd527
commit 3366db0ad9
1 changed files with 7 additions and 1 deletions

View File

@ -2656,7 +2656,13 @@ openMainDialog = function()
text = "Analyze",
visible = false,
onclick = function()
if not S.sourceImage then return end
if not S.sourceImage then
refreshSource()
end
if not S.sourceImage then
app.alert("No source image. Open a sprite first.")
return
end
local usedTileW = S.gbTileW
local usedTileH = S.gbTileH
if S.gbAnalyzeMode == "tile" then