Skip to content
Snippets Groups Projects
Commit 9ca871e8 authored by Philipp Schäfer's avatar Philipp Schäfer
Browse files

more stuff

parent 7e04c23b
No related branches found
No related tags found
No related merge requests found
......@@ -637,7 +637,7 @@ float UVASourceComponent::GetSoundTimeOffset() const
void UVASourceComponent::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
{
if (PropertyChangedEvent.GetPropertyName() != GET_MEMBER_NAME_CHECKED(UVASourceComponent, SignalSourceType))
if (PropertyChangedEvent.GetPropertyName() != GET_MEMBER_NAME_CHECKED(UVASourceComponent, SignalSourceClass))
return;
if (SignalSource != nullptr)
......@@ -646,18 +646,19 @@ void UVASourceComponent::PostEditChangeProperty(FPropertyChangedEvent& PropertyC
SignalSource->MarkPendingKill();
SignalSource = nullptr;
}
switch (SignalSourceType)
if (SignalSourceClass == UVAAudiofileSignalSource::StaticClass())
{
case ESignalSource::AudioFile:
SignalSource = NewObject<UVAAudiofileSignalSource>();
break;
case ESignalSource::JetEngine:
}
else if (SignalSourceClass == UVAJetEngineSignalSource::StaticClass())
{
SignalSource = NewObject<UVAJetEngineSignalSource>();
break;
default:
}
else
{
FVAUtils::OpenMessageBox("[UVASourceComponent::PostEditChangeProperty()]: Signal source type is not supported", true);
break;
}
Super::PostEditChangeProperty(PropertyChangedEvent);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment