27 lines
831 B
C++
27 lines
831 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Channels/ByteChannelKeyProxy.h"
|
|
|
|
#include "Channels/MovieSceneByteChannel.h"
|
|
#include "HAL/PlatformCrt.h"
|
|
|
|
struct FPropertyChangedEvent;
|
|
|
|
void UByteChannelKeyProxy::Initialize(FKeyHandle InKeyHandle, TMovieSceneChannelHandle<FMovieSceneByteChannel> InChannelHandle, TWeakObjectPtr<UMovieSceneSection> InWeakSection)
|
|
{
|
|
KeyHandle = InKeyHandle;
|
|
ChannelHandle = InChannelHandle;
|
|
WeakSection = InWeakSection;
|
|
}
|
|
|
|
void UByteChannelKeyProxy::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
|
|
{
|
|
Super::PostEditChangeProperty(PropertyChangedEvent);
|
|
|
|
OnProxyValueChanged(ChannelHandle, WeakSection.Get(), KeyHandle, Value, Time);
|
|
}
|
|
|
|
void UByteChannelKeyProxy::UpdateValuesFromRawData()
|
|
{
|
|
RefreshCurrentValue(ChannelHandle, KeyHandle, Value, Time);
|
|
} |