[unity] Fixed Atlas source cannot be null! upon jpg import in Unity 2022.2. Closes #2237.

This commit is contained in:
Harald Csaszar 2023-02-08 20:05:50 +01:00
parent 634028495f
commit be983ac413

View File

@ -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;