From ae58de44e3712bfa32b8fb5f99dea5e280c9ce5c Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 30 Jun 2021 11:31:53 +0200 Subject: [PATCH] Fix instance creation UI refresh for FontReference --- Source/Editor/CustomEditors/Editors/GenericEditor.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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(); }; }