mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
Merge pull request #926 from Azaezel/alpha402/soundSafety
if we have no description, the sounds is never 3d
This commit is contained in:
commit
d021c5ddfa
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue