Skip to content
Snippets Groups Projects
Commit 710d46fa authored by VR Lab 4's avatar VR Lab 4
Browse files

make directivity handling more robust

parent d6f8b4e7
No related branches found
No related tags found
No related merge requests found
...@@ -489,11 +489,19 @@ bool UVAAbstractSourceComponent::SetDirectivityByFileName(const FString FileName ...@@ -489,11 +489,19 @@ bool UVAAbstractSourceComponent::SetDirectivityByFileName(const FString FileName
bool UVAAbstractSourceComponent::SetDefaultDirectivity() bool UVAAbstractSourceComponent::SetDefaultDirectivity()
{ {
if (!ShouldSendCommand())
{
return false;
}
return SoundSource->SetDirectivity(FVADirectivityManager::GetDefaultDirectivity()); return SoundSource->SetDirectivity(FVADirectivityManager::GetDefaultDirectivity());
} }
bool UVAAbstractSourceComponent::SetNoDirectivity() bool UVAAbstractSourceComponent::SetNoDirectivity()
{ {
if (!ShouldSendCommand())
{
return false;
}
return SoundSource->RemoveDirectivity(); return SoundSource->RemoveDirectivity();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment