Fix bug in CustomEditorWindow usage

#3392
This commit is contained in:
Wojtek Figat
2025-04-22 12:00:35 +02:00
parent 216868085b
commit caf0251a9c
2 changed files with 3 additions and 2 deletions

View File

@@ -33,8 +33,8 @@ namespace FlaxEditor
private void Set(CustomEditorWindow value)
{
_customEditor = value;
_presenter.Select(value);
_presenter.OverrideEditor = value;
_presenter.Select(value);
}
/// <inheritdoc />

View File

@@ -132,6 +132,8 @@ namespace FlaxEditor.CustomEditors
get => _overrideEditor;
set
{
if (_overrideEditor == value)
return;
_overrideEditor = value;
RebuildLayout();
}
@@ -200,7 +202,6 @@ namespace FlaxEditor.CustomEditors
protected override void Deinitialize()
{
Editor = null;
_overrideEditor = null;
base.Deinitialize();
}