Fix regression for actor properties diff or default value reverting in Editor

This commit is contained in:
Wojtek Figat
2021-09-24 10:52:20 +02:00
parent bbe64a517c
commit 4f050fe288

View File

@@ -380,7 +380,7 @@ namespace FlaxEditor.CustomEditors
return false;
// Skip array items (show diff only on a bottom level properties and fields)
if (ParentEditor != null && ParentEditor.Values.Type != ScriptType.Null && ParentEditor.Values.Type.IsArray)
if (ParentEditor is Editors.ArrayEditor)
return false;
return true;
@@ -465,7 +465,7 @@ namespace FlaxEditor.CustomEditors
return false;
// Skip array items (show diff only on a bottom level properties and fields)
if (ParentEditor != null && ParentEditor.Values.Type != ScriptType.Null && ParentEditor.Values.Type.IsArray)
if (ParentEditor is Editors.ArrayEditor)
return false;
return true;