Skip to content

Commit

Permalink
Cycle Indices Add comment for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
behreajj committed Nov 10, 2024
1 parent fad460d commit 0d3acfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dialogs/anim/cycleIndices.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 110,6 @@ dlg:button {
-- Unpack sprite spec.
local activeSpec <const> = activeSprite.spec
local colorMode <const> = activeSpec.colorMode
local alphaIndex <const> = activeSpec.transparentColor

local isTileMap = false
local tileSet = nil
Expand Down Expand Up @@ -234,6 233,10 @@ dlg:button {
chosenIdcs[h] = rangeColors[h]
end
else
-- This filters out alpha index, while other clauses don't,
-- because it is the second backup for invalid chosen
-- indices, and just gets any reasonable palette swatch.
local alphaIndex <const> = activeSpec.transparentColor
local h = 0
while h < lenPalActive do
if h ~= alphaIndex
Expand Down

0 comments on commit 0d3acfd

Please sign in to comment.