18 lines
598 B
C++
18 lines
598 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Channels/MovieSceneTimeWarpChannel.h"
|
|
|
|
void Dilate(FMovieSceneTimeWarpChannel* InChannel, FFrameNumber Origin, double DilationFactor)
|
|
{
|
|
if (InChannel->Domain == UE::MovieScene::ETimeWarpChannelDomain::PlayRate)
|
|
{
|
|
// Inverse dilate the values if we are in the play-rate domain
|
|
for (FMovieSceneDoubleValue& Value : InChannel->GetData().GetValues())
|
|
{
|
|
Value.Value /= DilationFactor;
|
|
}
|
|
}
|
|
|
|
// The default implementation dilates the keytimes
|
|
Dilate(static_cast<FMovieSceneDoubleChannel*>(InChannel), Origin, DilationFactor);
|
|
} |