Fix editor error when selecting foliage type

This commit is contained in:
Wojtek Figat
2022-08-14 00:47:30 +02:00
parent c43f724189
commit 31fb4f6a15
2 changed files with 2 additions and 0 deletions

View File

@@ -400,6 +400,7 @@ namespace FlaxEditor.Tools.Foliage
if (currentIndex != -1)
{
_items.Children[currentIndex].BackgroundColor = Style.Current.BackgroundSelected;
_proxy.SyncOptions();
_presenter.Select(_proxy);
_presenter.BuildLayoutOnUpdate();

View File

@@ -243,6 +243,7 @@ namespace FlaxEditor.Tools.Foliage
if (currentIndex != -1)
{
((ContainerControl)_items.Children[currentIndex]).Children[1].BackgroundColor = Style.Current.BackgroundSelected;
_proxy.SyncOptions();
_presenter.Select(_proxy);
_presenter.BuildLayoutOnUpdate();