mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Fixed UnloadUnusedAssetsImmediate causing very long build times by removing the statements. Closes #2960.
This commit is contained in:
parent
f6445e69dd
commit
2dfcc8d045
@ -98,7 +98,6 @@ namespace Spine.Unity.Editor {
|
|||||||
if (SpineEditorUtilities.CleanupSpinePrefabMesh(prefabGameObject)) {
|
if (SpineEditorUtilities.CleanupSpinePrefabMesh(prefabGameObject)) {
|
||||||
prefabsToRestore.Add(assetPath);
|
prefabsToRestore.Add(assetPath);
|
||||||
}
|
}
|
||||||
EditorUtility.UnloadUnusedAssetsImmediate();
|
|
||||||
}
|
}
|
||||||
AssetDatabase.StopAssetEditing();
|
AssetDatabase.StopAssetEditing();
|
||||||
if (prefabAssets.Length > 0)
|
if (prefabAssets.Length > 0)
|
||||||
@ -149,7 +148,6 @@ namespace Spine.Unity.Editor {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EditorUtility.UnloadUnusedAssetsImmediate();
|
|
||||||
AssetDatabase.StopAssetEditing();
|
AssetDatabase.StopAssetEditing();
|
||||||
#if !HAS_SAVE_ASSET_IF_DIRTY
|
#if !HAS_SAVE_ASSET_IF_DIRTY
|
||||||
if (textureLoadersToRestore.Count > 0)
|
if (textureLoadersToRestore.Count > 0)
|
||||||
@ -199,7 +197,6 @@ namespace Spine.Unity.Editor {
|
|||||||
spriteAtlasTexturesToRestore[assetPath] = AssetDatabase.GetAssetPath(atlasAsset.materials[0].mainTexture);
|
spriteAtlasTexturesToRestore[assetPath] = AssetDatabase.GetAssetPath(atlasAsset.materials[0].mainTexture);
|
||||||
atlasAsset.materials[0].mainTexture = null;
|
atlasAsset.materials[0].mainTexture = null;
|
||||||
}
|
}
|
||||||
EditorUtility.UnloadUnusedAssetsImmediate();
|
|
||||||
}
|
}
|
||||||
AssetDatabase.StopAssetEditing();
|
AssetDatabase.StopAssetEditing();
|
||||||
if (spriteAtlasAssets.Length > 0)
|
if (spriteAtlasAssets.Length > 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user