Fixes issue where type editor fails to find acceptable types when creating new json data asset.
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user