Cleanup code in #1367 and fix api compatibility, revert joint changes

This commit is contained in:
Wojtek Figat
2023-09-28 13:10:58 +02:00
parent 3b94792f2e
commit d71c171412
9 changed files with 48 additions and 17 deletions

View File

@@ -66,7 +66,7 @@ void AudioListener::OnTransformChanged()
_box = BoundingBox(_transform.Translation);
_sphere = BoundingSphere(_transform.Translation, 0.0f);
if (IsActiveInHierarchy())
if (IsActiveInHierarchy() && IsDuringPlay())
{
AudioBackend::Listener::TransformChanged(this);
}