mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Merge branch '4.1' of https://github.com/esotericsoftware/spine-runtimes into 4.1
This commit is contained in:
commit
aec3b6adaa
@ -320,12 +320,11 @@ namespace Spine.Unity.Editor {
|
|||||||
List<SpriteMetaData> sprites = new List<SpriteMetaData>(spriteSheet);
|
List<SpriteMetaData> sprites = new List<SpriteMetaData>(spriteSheet);
|
||||||
|
|
||||||
List<AtlasRegion> regions = SpineAtlasAssetInspector.GetRegions(atlas);
|
List<AtlasRegion> regions = SpineAtlasAssetInspector.GetRegions(atlas);
|
||||||
char[] FilenameDelimiter = { '.' };
|
|
||||||
int updatedCount = 0;
|
int updatedCount = 0;
|
||||||
int addedCount = 0;
|
int addedCount = 0;
|
||||||
|
|
||||||
foreach (AtlasRegion r in regions) {
|
foreach (AtlasRegion r in regions) {
|
||||||
string pageName = r.page.name.Split(FilenameDelimiter, StringSplitOptions.RemoveEmptyEntries)[0];
|
string pageName = System.IO.Path.GetFileNameWithoutExtension(r.page.name);
|
||||||
string textureName = texture.name;
|
string textureName = texture.name;
|
||||||
bool pageMatch = string.Equals(pageName, textureName, StringComparison.Ordinal);
|
bool pageMatch = string.Equals(pageName, textureName, StringComparison.Ordinal);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user