From aff2c154a941fc56000a9a5f6e033ab627b38fbb Mon Sep 17 00:00:00 2001 From: Sean Connor Date: Sat, 26 Dec 2020 14:18:46 -0700 Subject: [PATCH] Fixes issue where type editor fails to find acceptable types when creating new json data asset. --- Source/Editor/CustomEditors/Editors/TypeEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/CustomEditors/Editors/TypeEditor.cs b/Source/Editor/CustomEditors/Editors/TypeEditor.cs index 5c88a2c29..c717979f8 100644 --- a/Source/Editor/CustomEditors/Editors/TypeEditor.cs +++ b/Source/Editor/CustomEditors/Editors/TypeEditor.cs @@ -405,7 +405,7 @@ namespace FlaxEditor.CustomEditors.Editors if (_element.CustomControl.Type == new ScriptType(typeof(object))) { - _element.CustomControl.Type = Values.Type.Type != typeof(object) || Values[0] == null ? Values.Type : TypeUtils.GetObjectType(Values[0]); + _element.CustomControl.Type = Values.Type.Type != typeof(object) || Values[0] == null ? new ScriptType(typeof(object)) : TypeUtils.GetObjectType(Values[0]); } } }