[3.2] Fix DebugPlay request handler ignoring BuildBeforePlaying

This must have been missed when backporting the new protocol to 3.2.
This commit is contained in:
Ignacio Etcheverry 2020-06-25 21:20:41 +02:00
parent d0f365fe0f
commit 7af6a4cc50
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ namespace GodotTools.Ides
DispatchToMainThread(() => DispatchToMainThread(() =>
{ {
GodotSharpEditor.Instance.CurrentPlaySettings = GodotSharpEditor.Instance.CurrentPlaySettings =
new PlaySettings(request.DebuggerHost, request.DebuggerPort, buildBeforePlaying: true); new PlaySettings(request.DebuggerHost, request.DebuggerPort, request.BuildBeforePlaying ?? true);
Internal.EditorRunPlay(); Internal.EditorRunPlay();
GodotSharpEditor.Instance.CurrentPlaySettings = null; GodotSharpEditor.Instance.CurrentPlaySettings = null;
}); });