Fix missing Properties window focus after adding script to the actor
This commit is contained in:
@@ -241,7 +241,12 @@ namespace FlaxEditor.CustomEditors.Dedicated
|
||||
|
||||
var multiAction = new MultiUndoAction(actions);
|
||||
multiAction.Do();
|
||||
ScriptsEditor.Presenter?.Undo.AddAction(multiAction);
|
||||
var presenter = ScriptsEditor.Presenter;
|
||||
if (presenter != null)
|
||||
{
|
||||
presenter.Undo.AddAction(multiAction);
|
||||
presenter.Control.Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user