Fix entering play mode in Editor with pause mode on start
This commit is contained in:
@@ -68,11 +68,6 @@ namespace FlaxEditor.Modules
|
||||
BreakpointHangEnd?.Invoke();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks if play mode should start only with single frame update and then enter step mode.
|
||||
/// </summary>
|
||||
public bool ShouldPlayModeStartWithStep => Editor.UI.IsPauseButtonChecked;
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if play mode has been requested.
|
||||
/// </summary>
|
||||
@@ -242,10 +237,9 @@ namespace FlaxEditor.Modules
|
||||
_isPlayModeRequested = false;
|
||||
|
||||
// Enter play mode
|
||||
var shouldPlayModeStartWithStep = Editor.UI.IsPauseButtonChecked;
|
||||
Editor.StateMachine.GoToState<PlayingState>();
|
||||
|
||||
// Check if move just by one frame
|
||||
if (ShouldPlayModeStartWithStep)
|
||||
if (shouldPlayModeStartWithStep)
|
||||
{
|
||||
RequestPausePlay();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user