Fixes issue where type editor fails to find acceptable types when creating new json data asset.

This commit is contained in:
Sean Connor
2020-12-26 14:18:46 -07:00
parent da389eea03
commit aff2c154a9

View File

@@ -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]);
}
}
}