Diagnose Analyze silent failure when sourceImage is nil
This commit is contained in:
parent
6a97dbd527
commit
3366db0ad9
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue