callumtw

Overloads of the GetRepackedSkin() extension method in AtlasUtilities (lines 228 and 322) produce textures without mipmaps even if that argument is set to true. This is because calls to ToTexture() within the method use the default arguments rather than those passed in (including the texture format).

To Reproduce:
- Repack a skin (with textures that have mipmaps) using GetRepackedSkin() with the mipmaps argument set to true
- Debug.Log the resulting texture's mipmap count, it will be 1.

Fix:
- Change calls to ToTexture() at lines 253 and 353 in AtlasUtilities to pass on the textureFormat and mipmaps arguments.
- Debug the resulting texture's mipmap count, it will now be higher than 1.

Unity 2019.2, spine-unity-3.8-2019-09-27
callumtw
  • Bài viết: 5

Harald

Thanks very much for reporting! Very much appreciated.
We will get back to you once we have released the bugfix.
Hình đại diện của thành viên
Harald

Harri
  • Bài viết: 2103

callumtw

Great, thanks!
callumtw
  • Bài viết: 5

Harald

New unitypackages have been uploaded with the bugfix, you can download them here as usual:
Spine Unity Download

Thanks again for reporting!
Hình đại diện của thành viên
Harald

Harri
  • Bài viết: 2103

callumtw

Terrific, thanks Harald! :)
callumtw
  • Bài viết: 5


Quay về Bugs