prevent running in play mode

This commit is contained in:
in0finite 2022-01-24 22:49:19 +01:00
parent e97e308a0c
commit 75018ffc4a

View file

@ -174,6 +174,12 @@ namespace SanAndreasUnity.Editor
if (this.IsExportingFromGameFiles) if (this.IsExportingFromGameFiles)
{ {
if (!F.IsAppInEditTime)
{
EditorUtility.DisplayDialog("", "This type of export can only run in edit-mode.", "Ok");
yield break;
}
LoadingThread.Singleton.EnsureBackgroundThreadStarted(); LoadingThread.Singleton.EnsureBackgroundThreadStarted();
if (!LoadingThread.Singleton.IsBackgroundThreadRunning()) if (!LoadingThread.Singleton.IsBackgroundThreadRunning())
{ {