Fix error when using multi-dimensional array property (not supported)
#422
This commit is contained in:
@@ -63,6 +63,8 @@ namespace FlaxEditor.CustomEditors
|
|||||||
return new GenericEditor();
|
return new GenericEditor();
|
||||||
if (targetType.IsArray)
|
if (targetType.IsArray)
|
||||||
{
|
{
|
||||||
|
if (targetType.Type.GetArrayRank() != 1)
|
||||||
|
return new GenericEditor(); // Not-supported multidimensional array
|
||||||
return new ArrayEditor();
|
return new ArrayEditor();
|
||||||
}
|
}
|
||||||
var targetTypeType = TypeUtils.GetType(targetType);
|
var targetTypeType = TypeUtils.GetType(targetType);
|
||||||
|
|||||||
Reference in New Issue
Block a user