Diagnose Analyze silent failure when sourceImage is nil

This commit is contained in:
2026-04-05 14:02:36 +02:00
parent 6a97dbd527
commit 3366db0ad9
+7 -1
View File
@@ -2656,7 +2656,13 @@ openMainDialog = function()
text = "Analyze", text = "Analyze",
visible = false, visible = false,
onclick = function() 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 usedTileW = S.gbTileW
local usedTileH = S.gbTileH local usedTileH = S.gbTileH
if S.gbAnalyzeMode == "tile" then if S.gbAnalyzeMode == "tile" then