Fix regression in Custom Editor UI from 74bcf7d9e5

#1616 #1911
This commit is contained in:
Wojtek Figat
2023-11-11 14:47:20 +01:00
parent 43ae0bcd4c
commit ddaa5f9161

View File

@@ -157,7 +157,7 @@ namespace FlaxEditor.CustomEditors
var values = _values; var values = _values;
var presenter = _presenter; var presenter = _presenter;
var layout = _layout; var layout = _layout;
if (layout.Editors.Count != 1) if (layout.Editors.Count > 1)
{ {
// There are more editors using the same layout so rebuild parent editor to prevent removing others editors // There are more editors using the same layout so rebuild parent editor to prevent removing others editors
_parent?.RebuildLayout(); _parent?.RebuildLayout();