sprite ai
Reload One AI Skin Layer Without Touching the Other Skins
Artists often compare alternate skins with identical canvas coordinates. A hot-reload patch must update a particular skin as well as a particular rectangle. If the patch loses the layer identifier, another variant can inherit an edit while the target looks unchanged.
Place witnesses in neighboring layers
Build two small skin layers with different colors at the same coordinates. Patch one texel in the second layer, then sample the target, its spatial neighbor, and the same point in the first layer. Only the target should change. Repeat with a reload that reverses the assigned layer order in a generated manifest, so the test catches hardcoded indices.
The FrameSprite technical guide and test fixture shows a ModernGL patch constrained to one rectangle and one layer. Map the source asset and approved revision to a resolved layer ID before issuing the upload. If the texture has mipmaps, separately test the edited layer at its displayed lower resolutions; write-scope correctness at the base level does not establish that the derived levels were updated.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.