From a1cdf3e733dbf304cca6c6927cac3410f12f0a63 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Thu, 20 Jul 2023 21:31:07 -0500 Subject: [PATCH] Fix bug of populating asset picker if option platform type does not exist. --- Source/Editor/CustomEditors/Editors/AssetRefEditor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Editor/CustomEditors/Editors/AssetRefEditor.cs b/Source/Editor/CustomEditors/Editors/AssetRefEditor.cs index e89c80372..cfba940c2 100644 --- a/Source/Editor/CustomEditors/Editors/AssetRefEditor.cs +++ b/Source/Editor/CustomEditors/Editors/AssetRefEditor.cs @@ -80,6 +80,8 @@ namespace FlaxEditor.CustomEditors.Editors assetType = customType; else if (!Content.Settings.GameSettings.OptionalPlatformSettings.Contains(assetReference.TypeName)) Debug.LogWarning(string.Format("Unknown asset type '{0}' to use for asset picker filter.", assetReference.TypeName)); + else + assetType = ScriptType.Void; } }