mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Changed implementation of previous bugfix commit ab91a35 of Editor error messages upon startup. Uses less code and executes a bit earlier. See #1779.
This commit is contained in:
parent
ab91a3539d
commit
e95e130e9b
@ -69,7 +69,6 @@ namespace Spine.Unity.Editor {
|
|||||||
public static string editorPath = "";
|
public static string editorPath = "";
|
||||||
public static string editorGUIPath = "";
|
public static string editorGUIPath = "";
|
||||||
public static bool initialized;
|
public static bool initialized;
|
||||||
private static int numFramesToDelayInit = 1;
|
|
||||||
private static List<string> texturesWithoutMetaFile = new List<string>();
|
private static List<string> texturesWithoutMetaFile = new List<string>();
|
||||||
|
|
||||||
// Auto-import entry point for textures
|
// Auto-import entry point for textures
|
||||||
@ -97,16 +96,11 @@ namespace Spine.Unity.Editor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region Initialization
|
#region Initialization
|
||||||
|
|
||||||
static SpineEditorUtilities () {
|
static SpineEditorUtilities () {
|
||||||
EditorApplication.update += Initialize; // delayed so that AssetDatabase is ready.
|
EditorApplication.delayCall += Initialize; // delayed so that AssetDatabase is ready.
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Initialize () {
|
static void Initialize () {
|
||||||
if (numFramesToDelayInit-- > 0)
|
|
||||||
return;
|
|
||||||
EditorApplication.update -= Initialize;
|
|
||||||
|
|
||||||
// Note: Preferences need to be loaded when changing play mode
|
// Note: Preferences need to be loaded when changing play mode
|
||||||
// to initialize handle scale correctly.
|
// to initialize handle scale correctly.
|
||||||
#if !NEW_PREFERENCES_SETTINGS_PROVIDER
|
#if !NEW_PREFERENCES_SETTINGS_PROVIDER
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user