From 4f050fe2883c63bc3dccfa354fe7aa992e32bfbb Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 24 Sep 2021 10:52:20 +0200 Subject: [PATCH] Fix regression for actor properties diff or default value reverting in Editor --- Source/Editor/CustomEditors/CustomEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/CustomEditors/CustomEditor.cs b/Source/Editor/CustomEditors/CustomEditor.cs index f2a69fa07..4970e5db5 100644 --- a/Source/Editor/CustomEditors/CustomEditor.cs +++ b/Source/Editor/CustomEditors/CustomEditor.cs @@ -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;