Browse Source

if we have no description, the sounds is never 3d

AzaezelX 2 years ago
parent
commit
ab98909f1e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/sfx/sfxSound.cpp

+ 1 - 1
Engine/source/sfx/sfxSound.cpp

@@ -554,7 +554,7 @@ void SFXSound::setTransform( const MatrixF& transform )
 {
    Parent::setTransform( transform );
 
-   if( mVoice && is3d() )
+   if( mVoice && mDescription && is3d() )
       mVoice->setTransform( mTransform );      
 }