Fixed broken transforms after play mode

This commit is contained in:
Antoine Pilote
2024-04-27 20:46:38 -04:00
parent 59648e305b
commit 9efa3892aa
2 changed files with 4 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ namespace Nuake
s_LastFrameTime = s_Time;
// Dont update if no scene is loaded.
if (s_CurrentWindow->GetScene() && GetGameState() == GameState::Playing)
if (s_CurrentWindow->GetScene())
{
float scaledTimeStep = s_TimeStep * s_TimeScale;
s_CurrentWindow->Update(scaledTimeStep);