Browse Source

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

AzaezelX 2 năm trước cách đây
mục cha
commit
ab98909f1e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 );
    Parent::setTransform( transform );
 
 
-   if( mVoice && is3d() )
+   if( mVoice && mDescription && is3d() )
       mVoice->setTransform( mTransform );      
       mVoice->setTransform( mTransform );      
 }
 }