Files
UnrealEngine/Engine/Source/Runtime/MovieScene/Private/Evaluation/PreAnimatedState/MovieScenePreAnimatedRootTokenStorage.cpp
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

42 lines
1.4 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Evaluation/PreAnimatedState/MovieScenePreAnimatedRootTokenStorage.h"
#include "Evaluation/PreAnimatedState/MovieScenePreAnimatedStorageID.inl"
namespace UE
{
namespace MovieScene
{
TAutoRegisterPreAnimatedStorageID<FAnimTypePreAnimatedStateRootStorage> FAnimTypePreAnimatedStateRootStorage::StorageID;
void FAnimTypePreAnimatedStateRootStorage::Initialize(FPreAnimatedStorageID InStorageID, FPreAnimatedStateExtension* InParentExtension)
{
TPreAnimatedStateStorage<FPreAnimatedRootTokenTraits>::Initialize(InStorageID, InParentExtension);
}
FPreAnimatedStateEntry FAnimTypePreAnimatedStateRootStorage::FindEntry(FMovieSceneAnimTypeID AnimTypeID)
{
// Find the storage index for the specific anim-type and object we're animating
FPreAnimatedStorageIndex StorageIndex = FindStorageIndex(AnimTypeID);
return FPreAnimatedStateEntry{ FPreAnimatedStorageGroupHandle(), FPreAnimatedStateCachedValueHandle{ StorageID, StorageIndex } };
}
FPreAnimatedStateEntry FAnimTypePreAnimatedStateRootStorage::MakeEntry(FMovieSceneAnimTypeID AnimTypeID)
{
// Find the storage index for the specific anim-type and object we're animating
FPreAnimatedStorageIndex StorageIndex = GetOrCreateStorageIndex(AnimTypeID);
return FPreAnimatedStateEntry{ FPreAnimatedStorageGroupHandle(), FPreAnimatedStateCachedValueHandle{ StorageID, StorageIndex } };
}
} // namespace MovieScene
} // namespace UE