I have an issue with image refresh when using meshes, here's what I'm doing:
1 - Set up skeleton with meshes based on images
2 - Swap the images in the images folder with new files
3 - Trim the white spaces in the images in the images folder
The meshes look then deformed. If I paste the images already trimmed then there is no issue.

It seems as if Spine refreshes the meshes as soon as the images are copied into the images folder (step 2) but then doesn't refresh them again once trimmed (step 3).

I can obviously trim the images before pasting them but I generally really like how spine picks up changes in the image folder as it's useful when going through multiple iterations.

Screen caps of the issue attached.

Thanks in advance.
Posts: 28


Spine tries to be smart when a mesh image changes size:

If the image is larger, Spine assumes whitespace was added to the edges, so it keeps the UVs the same size, centered by how much larger the image is. You may need to use Edit Mesh mode to move all the UVs. If you scaled the image up, keeping the UVs the same size isn't what you want. Spine doesn't have a way to scale the UVs, so you'll have to redo your mesh.

If the image is smaller, the UVs are scaled the same amount, which would be what you want if you scaled the original image down. If you trimmed the image, so the image contents are the same size but the image dimensions are now smaller, then the scaled down UVs won't be what you want. Spine doesn't have a way to scale the UVs back up, so you'll have to redo your mesh.

One solution would be if Spine prompted when it detects a mesh image resize to ask what you want to happen.
User avatar

Posts: 7977


Thanks Nate, understood. I'll edit the images outside of the project folder for now. A prompt would be useful or another way could be to provide a non-default manual refresh alternative to the default automatic one.
Posts: 28

Return to Editor