From 3366db0ad97eb566b0e670a7c56e14904e2a4568 Mon Sep 17 00:00:00 2001 From: Cidwel Highwind Date: Sun, 5 Apr 2026 14:02:36 +0200 Subject: [PATCH] Diagnose Analyze silent failure when sourceImage is nil --- aniphallow.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aniphallow.lua b/aniphallow.lua index 5886675..a12a442 100644 --- a/aniphallow.lua +++ b/aniphallow.lua @@ -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