From f2d235bc74627a2ea17409fbe659a7eab5178f0f Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 16 Aug 2021 09:48:31 +0200 Subject: [PATCH] Fix Custom Editor UI regression 3cf3f58db17352fa4118b7e617f50787c4d5045e --- Source/Editor/CustomEditors/Editors/GenericEditor.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/Editor/CustomEditors/Editors/GenericEditor.cs b/Source/Editor/CustomEditors/Editors/GenericEditor.cs index 8510fa9ff..6a20b6a28 100644 --- a/Source/Editor/CustomEditors/Editors/GenericEditor.cs +++ b/Source/Editor/CustomEditors/Editors/GenericEditor.cs @@ -419,12 +419,18 @@ namespace FlaxEditor.CustomEditors.Editors } } + /// + internal override void Initialize(CustomEditorPresenter presenter, LayoutElementsContainer layout, ValueContainer values) + { + _isNull = values != null && values.IsNull; + + base.Initialize(presenter, layout, values); + } + /// public override void Initialize(LayoutElementsContainer layout) { - var values = Values; _visibleIfCaches = null; - _isNull = values != null && values.IsNull; // Collect items to edit List items;