mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[unity] Fixed texture preset not being applied when more atlas pages are added later. Fixed atlas page count not being updated immediately after change. Closes #2266.
This commit is contained in:
parent
7c76c5803c
commit
f09f5b73a0
@ -634,6 +634,7 @@ namespace Spine.Unity.Editor {
|
||||
atlasAsset.atlasFile = atlasText;
|
||||
|
||||
List<string> pageFiles = new List<string>();
|
||||
atlasAsset.Clear(); // force reload
|
||||
Atlas atlas = atlasAsset.GetAtlas(onlyMetaData: true);
|
||||
if (atlas != null) {
|
||||
foreach (AtlasPage page in atlas.Pages)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user