|
@@ -567,7 +567,8 @@ namespace Spine.Unity.Editor {
|
|
|
imagePaths.Add(str);
|
|
|
break;
|
|
|
case ".json":
|
|
|
- if (IsSpineData((TextAsset)AssetDatabase.LoadAssetAtPath(str, typeof(TextAsset))))
|
|
|
+ var jsonAsset = (TextAsset)AssetDatabase.LoadAssetAtPath(str, typeof(TextAsset));
|
|
|
+ if (jsonAsset != null && IsSpineData(jsonAsset))
|
|
|
skeletonPaths.Add(str);
|
|
|
break;
|
|
|
case ".bytes":
|
|
@@ -1186,6 +1187,8 @@ namespace Spine.Unity.Editor {
|
|
|
}
|
|
|
|
|
|
public static bool IsSpineData (TextAsset asset) {
|
|
|
+ if (asset == null) return false;
|
|
|
+
|
|
|
bool isSpineData = false;
|
|
|
string rawVersion = null;
|
|
|
|