diff --git a/Source/VAPlugin/Private/SoundSource/VAAbstractSourceComponent.cpp b/Source/VAPlugin/Private/SoundSource/VAAbstractSourceComponent.cpp index a2c68f83827d1ac51d5d2f3ab7c092c559d0f294..f6cf224e60291e64395746c7fe69db025f08a6e0 100644 --- a/Source/VAPlugin/Private/SoundSource/VAAbstractSourceComponent.cpp +++ b/Source/VAPlugin/Private/SoundSource/VAAbstractSourceComponent.cpp @@ -489,11 +489,19 @@ bool UVAAbstractSourceComponent::SetDirectivityByFileName(const FString FileName bool UVAAbstractSourceComponent::SetDefaultDirectivity() { + if (!ShouldSendCommand()) + { + return false; + } return SoundSource->SetDirectivity(FVADirectivityManager::GetDefaultDirectivity()); } bool UVAAbstractSourceComponent::SetNoDirectivity() { + if (!ShouldSendCommand()) + { + return false; + } return SoundSource->RemoveDirectivity(); }