mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[unity] Fixed Atlas source cannot be null! upon jpg import in Unity 2022.2. Closes #2237.
This commit is contained in:
parent
634028495f
commit
be983ac413
@ -497,7 +497,7 @@ namespace Spine.Unity.Editor {
|
||||
|
||||
static void AddDependentAtlasIfImageChanged (List<string> atlasPaths, List<string> imagePaths) {
|
||||
foreach (string imagePath in imagePaths) {
|
||||
string atlasPath = imagePath.Replace(".png", ".atlas.txt");
|
||||
string atlasPath = Path.ChangeExtension(imagePath, ".atlas.txt");
|
||||
if (!System.IO.File.Exists(atlasPath))
|
||||
continue;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user