diff --git a/Source/Editor/CustomEditors/Editors/GenericEditor.cs b/Source/Editor/CustomEditors/Editors/GenericEditor.cs index d4079ad79..fc1b3b047 100644 --- a/Source/Editor/CustomEditors/Editors/GenericEditor.cs +++ b/Source/Editor/CustomEditors/Editors/GenericEditor.cs @@ -450,10 +450,7 @@ namespace FlaxEditor.CustomEditors.Editors { var newType = Values.Type; SetValue(newType.CreateInstance()); - if (ParentEditor != null) - ParentEditor.RebuildLayoutOnRefresh(); - else - RebuildLayoutOnRefresh(); + RebuildLayoutOnRefresh(); }; }