You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "MovieSceneCurveInterfaceKeyEditStructCustomization.h"
|
|
|
|
#include "GenericKeyArea.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "MovieSceneCurveInterfaceKeyEditStructCustomization"
|
|
|
|
TSharedRef<IDetailCustomization> FMovieSceneCurveInterfaceKeyEditStructCustomization::MakeInstance()
|
|
{
|
|
return MakeShared<FMovieSceneCurveInterfaceKeyEditStructCustomization>();
|
|
}
|
|
|
|
void FMovieSceneCurveInterfaceKeyEditStructCustomization::CustomizeDetails(IDetailLayoutBuilder& DetailBuilder)
|
|
{
|
|
TArray<TSharedPtr<FStructOnScope>> Structs;
|
|
DetailBuilder.GetStructsBeingCustomized(Structs);
|
|
|
|
if (Structs.Num() != 1)
|
|
{
|
|
return;
|
|
}
|
|
|
|
const UStruct* StructType = Structs[0]->GetStruct();
|
|
if (!StructType || StructType != FMovieSceneCurveInterfaceKeyEditStruct::StaticStruct())
|
|
{
|
|
return;
|
|
}
|
|
|
|
auto* StructValue = (FMovieSceneCurveInterfaceKeyEditStruct*)Structs[0]->GetStructMemory();
|
|
if (!StructValue)
|
|
{
|
|
return;
|
|
}
|
|
|
|
StructValue->EditInterface->Extend(StructValue->KeyHandle, DetailBuilder);
|
|
}
|
|
|
|
#undef LOCTEXT_NAMESPACE
|