From 51d6e63dfe5bce9812886e0ece5fa62975f38d77 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Thu, 31 Aug 2023 04:55:36 +1000 Subject: Only do spatial logging when spatial log is observed --- source/frontend/StarMainInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/frontend/StarMainInterface.cpp') diff --git a/source/frontend/StarMainInterface.cpp b/source/frontend/StarMainInterface.cpp index 4d8a22e..37d0a99 100644 --- a/source/frontend/StarMainInterface.cpp +++ b/source/frontend/StarMainInterface.cpp @@ -1329,8 +1329,10 @@ void MainInterface::renderDebug() { SpatialLogger::clear(); m_debugTextRect = RectF::null(); LogMap::clear(); + SpatialLogger::setObserved(false); return; } + SpatialLogger::setObserved(true); if (m_clientCommandProcessor->debugHudEnabled()) { auto assets = Root::singleton().assets(); -- cgit v1.2.3