Files
UnrealEngineUWP/Engine/Source/Runtime/LiveLinkInterface/Private/LiveLinkSourceSettings.cpp
simon therriault 43c07e73f8 Merging livelink fixes from dev-vp
#rb alejandro.arango
#jira UE-91191, UE-89367

#ROBOMERGE-SOURCE: CL 12465207 in //UE4/Release-4.25/... via CL 12465210 via CL 12465335
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v672-12450963)

[CL 12465337 by simon therriault in Main branch]
2020-03-26 22:06:19 -04:00

39 lines
1.5 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "LiveLinkSourceSettings.h"
#include "UObject/EnterpriseObjectVersion.h"
void ULiveLinkSourceSettings::Serialize(FArchive& Ar)
{
Super::Serialize(Ar);
Ar.UsingCustomVersion(FEnterpriseObjectVersion::GUID);
}
#if WITH_EDITOR
bool ULiveLinkSourceSettings::CanEditChange(const FProperty* InProperty) const
{
if (Super::CanEditChange(InProperty))
{
if (InProperty->GetFName() == GET_MEMBER_NAME_CHECKED(FLiveLinkSourceBufferManagementSettings, TimecodeFrameOffset)
|| InProperty->GetFName() == GET_MEMBER_NAME_CHECKED(FLiveLinkSourceBufferManagementSettings, TimecodeFrameRate)
|| InProperty->GetFName() == GET_MEMBER_NAME_CHECKED(FLiveLinkSourceBufferManagementSettings, ValidTimecodeFrame)
|| InProperty->GetFName() == GET_MEMBER_NAME_CHECKED(FLiveLinkSourceBufferManagementSettings, bValidTimecodeFrameEnabled)
|| InProperty->GetFName() == GET_MEMBER_NAME_CHECKED(FLiveLinkSourceBufferManagementSettings, bUseTimecodeSmoothLatest))
{
return Mode == ELiveLinkSourceMode::Timecode;
}
if (InProperty->GetFName() == GET_MEMBER_NAME_CHECKED(FLiveLinkSourceBufferManagementSettings, ValidEngineTime)
|| InProperty->GetFName() == GET_MEMBER_NAME_CHECKED(FLiveLinkSourceBufferManagementSettings, EngineTimeOffset)
|| InProperty->GetFName() == GET_MEMBER_NAME_CHECKED(FLiveLinkSourceBufferManagementSettings, bValidEngineTimeEnabled))
{
return Mode == ELiveLinkSourceMode::EngineTime;
}
return true;
}
return false;
}
#endif //WITH_EDITOR