From f58e09cfc3c8549a90a73798719f26be225abb75 Mon Sep 17 00:00:00 2001 From: antopilo Date: Mon, 16 Sep 2024 21:31:51 -0400 Subject: [PATCH] Removed overlay when in play mode --- Editor/src/Windows/EditorInterface.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Editor/src/Windows/EditorInterface.cpp b/Editor/src/Windows/EditorInterface.cpp index bad5a282..331efda5 100644 --- a/Editor/src/Windows/EditorInterface.cpp +++ b/Editor/src/Windows/EditorInterface.cpp @@ -2446,6 +2446,11 @@ namespace Nuake { void EditorInterface::Overlay() { + if (Engine::GetGameState() == GameState::Playing) + { + return; + } + // FIXME-VIEWPORT: Select a default viewport const float DISTANCE = 10.0f; int corner = 0;