Fixes for Visual Scripting in Editor

This commit is contained in:
Wojtek Figat
2022-05-01 21:11:15 +02:00
parent 3546793e12
commit 26d4ebd3d5
5 changed files with 18 additions and 13 deletions

View File

@@ -201,7 +201,12 @@ namespace FlaxEditor.Windows.Assets
}
else
{
if (isArray)
if (param.Type == ScriptType.Null)
{
b = cmType.ContextMenu.AddButton(window.Surface.GetTypeName(param.Type) + "...", () => OnChangeType(item => window.SetParamType(index, (ScriptType)item.Tag)));
return;
}
else if (isArray)
{
singleValueType = param.Type.GetElementType();
arrayType = param.Type;