Skip to content

Fix palette resolution#605

Merged
Asdow merged 1 commit into
masterfrom
lobot-palette-fix
May 28, 2026
Merged

Fix palette resolution#605
Asdow merged 1 commit into
masterfrom
lobot-palette-fix

Conversation

@Asdow
Copy link
Copy Markdown
Contributor

@Asdow Asdow commented May 28, 2026

The LayerProp palette lookup was gated on the filter attribute instead of the palette attribute -- the filter checks from the line above were copy-pasted verbatim. As a result, any LayerProp with an empty filter but a real palette never resolved its palette table: paletteTable stayed NULL and the layer fell back to the merc's shade table.

The most visible victim is the heli fast-rope arrival layer (filter="" palette="hats"): rendered with the merc palette, the rope's pixel indices (45-81, 166-172) hit the merc's unreplaced orange/red glow ramp instead of the rope's own tan/green, painting orange specks along the rope. Testing the palette attribute restores the intended "hats" palette and the correct rope colours; it also fixes any other empty-filter layers.

Co-Authored-By: Claude Opus 4.7

The LayerProp palette lookup was gated on the *filter* attribute instead
of the *palette* attribute -- the filter checks from the line above were
copy-pasted verbatim. As a result, any LayerProp with an empty filter but
a real palette never resolved its palette table: paletteTable stayed NULL
and the layer fell back to the merc's shade table.

The most visible victim is the heli fast-rope arrival layer
(filter="" palette="hats"): rendered with the merc palette, the rope's
pixel indices (45-81, 166-172) hit the merc's unreplaced orange/red glow
ramp instead of the rope's own tan/green, painting orange specks along the
rope. Testing the palette attribute restores the intended "hats" palette
and the correct rope colours; it also fixes any other empty-filter layers.

Co-Authored-By: Claude Opus 4.7
@Asdow Asdow merged commit b949189 into master May 28, 2026
9 checks passed
@Asdow Asdow deleted the lobot-palette-fix branch May 28, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant