Merge pull request #1368 from Azaezel/alpha41/sourceGroupGrok

fill in asset based sound group if not specified by instanced emitter
This commit is contained in:
Brian Roberts 2025-01-27 11:31:41 -06:00 committed by GitHub
commit 5feef0ec5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -840,6 +840,9 @@ void SFXEmitter::_update()
if (mDirty.test(SourceGroup) && mInstanceDescription->mSourceGroup)
mInstanceDescription->mSourceGroup->addObject(mSource);
else if (getSoundDescription() && getSoundDescription()->mSourceGroup)
getSoundDescription()->mSourceGroup->addObject(mSource);
// Skip these 3d only settings.
if(mInstanceDescription->mIs3D )
{

View file

@ -184,6 +184,8 @@ void GuiAudioCtrl::_update()
mSoundPlaying->setFadeTimes(mFadeInTime, mFadeOutTime);
}
else
getSoundDescription()->mSourceGroup->addObject(mSoundPlaying);
mSoundPlaying->play();
}