Files
UnrealEngineUWP/Engine/Source/Runtime/Engine/Private/TextureLightProfile.cpp

35 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
/*=============================================================================
TextureLightProfile.cpp: Implementation of UTextureLightProfile.
=============================================================================*/
#include "Engine/TextureLightProfile.h"
#include "EngineLogs.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(TextureLightProfile)
/*-----------------------------------------------------------------------------
UTextureLightProfile
-----------------------------------------------------------------------------*/
UTextureLightProfile::UTextureLightProfile(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
NeverStream = true;
Brightness = -1;
}
#if WITH_EDITOR
void UTextureLightProfile::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
{
if (VirtualTextureStreaming)
{
UE_LOG(LogTexture, Warning, TEXT("VirtualTextureStreaming not supported for IES textures"));
VirtualTextureStreaming = false;
}
Super::PostEditChangeProperty(PropertyChangedEvent);
}
#endif // WITH_EDITOR