Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

35 lines
704 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "ConstraintChannel.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(ConstraintChannel)
bool FMovieSceneConstraintChannel::Evaluate(FFrameTime InTime, bool& OutValue) const
{
if (Times.IsEmpty())
{
if (bHasDefaultValue)
{
OutValue = DefaultValue;
return true;
}
return false;
}
if (InTime.FrameNumber < Times[0])
{
if (bHasDefaultValue && !Values.IsEmpty() && !Values[0])
{
OutValue = DefaultValue;
return true;
}
return false;
}
return FMovieSceneBoolChannel::Evaluate(InTime, OutValue);
}
bool FMovieSceneConstraintChannel::IsInfinite() const
{
return Times.IsEmpty() && bHasDefaultValue && DefaultValue;
}