Fix editor error when selecting foliage type
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user