From 68d20787cf8540ebc22a45e6e82afbf8ad4dea15 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 26 Jun 2023 19:25:37 +1000 Subject: The camera is now also an audio listener --- source/client/StarClientApplication.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/client/StarClientApplication.cpp') diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp index b53a9c1..542e41b 100644 --- a/source/client/StarClientApplication.cpp +++ b/source/client/StarClientApplication.cpp @@ -408,6 +408,7 @@ void ClientApplication::changeState(MainAppState newState) { m_universeClient.reset(); m_mainMixer->setUniverseClient({}); + m_mainMixer->setWorldPainter({}); m_titleScreen.reset(); } @@ -535,6 +536,7 @@ void ClientApplication::changeState(MainAppState newState) { m_worldPainter = make_shared(); m_mainInterface = make_shared(m_universeClient, m_worldPainter, m_cinematicOverlay); + m_mainMixer->setWorldPainter(m_worldPainter); if (auto renderer = Application::renderer()) { m_worldPainter->renderInit(renderer); -- cgit v1.2.3