When I use resource.set_texture() to change a sprites texture, sprites with different materials are also affected.
I have two sprites, each sprite using a unique material, each material with a unique tag. The new materials also make use of the stencil buffer .
Also I’ve updated the render-script to draw sprites using these unique materials before those using the default sprite material.
When I update the texture of one of the sprites, both sprites are rendered using the new texture and, also, both ignore the stencil buffer.
It seems set_texture reverts the sprites to use the default sprite material.
Is this known/expected behavior or does it sound like a bug?