This repository has been archived on 2025-04-18. You can view files and clone it, but cannot push or open issues or pull requests.
TjgL 0108c69639 Added FMOD integration
Signed-off-by: TjgL <lithmoneo@gmail.com>
2025-02-22 14:19:53 +01:00

26 lines
804 B
C++

// Copyright (c), Firelight Technologies Pty, Ltd. 2012-2025.
#include "FMODParameterSection.h"
#include "ISectionLayoutBuilder.h"
#include "ScopedTransaction.h"
#include "Sections/MovieSceneParameterSection.h"
#define LOCTEXT_NAMESPACE "FMODParameterSection"
bool FFMODParameterSection::RequestDeleteKeyArea(const TArray<FName> &KeyAreaNamePath)
{
if (KeyAreaNamePath.Num() == 1)
{
const FScopedTransaction Transaction(LOCTEXT("DeleteEventParameter", "Delete event parameter"));
UMovieSceneParameterSection *ParameterSection = Cast<UMovieSceneParameterSection>(WeakSection.Get());
if (ParameterSection->TryModify())
{
return ParameterSection->RemoveScalarParameter(KeyAreaNamePath[0]);
}
}
return true;
}
#undef LOCTEXT_NAMESPACE