You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#JIRA UETOOL-3544 #rb Andrew.Rodham, Lauren.Barnes #preflight 60afc351241ce500010b1461 [CL 16487773 by Louise Rasmussen in ue5-main branch]
77 lines
1.6 KiB
C++
77 lines
1.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "CurveTableEditorHandle.h"
|
|
|
|
FRealCurve* FCurveTableEditorHandle::GetCurve() const
|
|
{
|
|
if (CurveTable != nullptr && RowName != NAME_None)
|
|
{
|
|
return CurveTable.Get()->FindCurve(RowName, TEXT("CurveTableEditorHandle::GetCurve"));
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
FRichCurve* FCurveTableEditorHandle::GetRichCurve() const
|
|
{
|
|
if (CurveTable != nullptr && RowName != NAME_None)
|
|
{
|
|
return CurveTable.Get()->FindRichCurve(RowName, TEXT("CurveTableEditorHandle::GetCurve"));
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
bool FCurveTableEditorHandle::HasRichCurves() const
|
|
{
|
|
if (CurveTable != nullptr)
|
|
{
|
|
return CurveTable.Get()->HasRichCurves();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
TArray<FRichCurveEditInfoConst> FCurveTableEditorHandle::GetCurves() const
|
|
{
|
|
TArray<FRichCurveEditInfoConst> Curves;
|
|
|
|
const FRealCurve* Curve = GetCurve();
|
|
if (Curve)
|
|
{
|
|
Curves.Add(FRichCurveEditInfoConst(Curve, RowName));
|
|
}
|
|
|
|
return Curves;
|
|
}
|
|
|
|
TArray<FRichCurveEditInfo> FCurveTableEditorHandle::GetCurves()
|
|
{
|
|
TArray<FRichCurveEditInfo> Curves;
|
|
|
|
FRealCurve* Curve = GetCurve();
|
|
if (Curve)
|
|
{
|
|
Curves.Add(FRichCurveEditInfo(Curve, RowName));
|
|
}
|
|
|
|
return Curves;
|
|
}
|
|
|
|
void FCurveTableEditorHandle::ModifyOwner()
|
|
{
|
|
check(false); // This handle is read only, so cannot be used to modify curves
|
|
}
|
|
|
|
void FCurveTableEditorHandle::MakeTransactional()
|
|
{
|
|
check(false); // This handle is read only, so cannot be used to modify curves
|
|
}
|
|
|
|
void FCurveTableEditorHandle::OnCurveChanged(const TArray<FRichCurveEditInfo>& ChangedCurveEditInfos)
|
|
{
|
|
|
|
}
|
|
|
|
bool FCurveTableEditorHandle::IsValidCurve(FRichCurveEditInfo CurveInfo)
|
|
{
|
|
return CurveInfo.CurveToEdit == GetCurve();
|
|
}
|