Fix crash in editor when opening Visual Script that uses array of visual script references

This commit is contained in:
Wojtek Figat
2024-09-15 22:59:29 +02:00
parent 2a29b8e807
commit 1fa0159079

View File

@@ -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