Fix crash in editor when opening Visual Script that uses array of visual script references
This commit is contained in:
@@ -72,6 +72,8 @@ namespace FlaxEditor.CustomEditors
|
||||
return new GenericEditor();
|
||||
if (targetType.IsArray)
|
||||
{
|
||||
if (targetType.Type == null)
|
||||
return new ArrayEditor();
|
||||
if (targetType.Type.GetArrayRank() != 1)
|
||||
return new GenericEditor(); // Not-supported multidimensional array
|
||||
|
||||
|
||||
Reference in New Issue
Block a user