36 lines
918 B
C++
36 lines
918 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Factories/TextureImportSettings.h"
|
|
#include "HAL/IConsoleManager.h"
|
|
#include "UObject/UnrealType.h"
|
|
#include "UObject/PropertyPortFlags.h"
|
|
|
|
UTextureImportSettings::UTextureImportSettings(const FObjectInitializer& ObjectInitializer)
|
|
: Super(ObjectInitializer)
|
|
{
|
|
SectionName = TEXT("Importing");
|
|
AutoVTSize = 4096;
|
|
}
|
|
|
|
void UTextureImportSettings::PostInitProperties()
|
|
{
|
|
Super::PostInitProperties();
|
|
#if WITH_EDITOR
|
|
if (IsTemplate())
|
|
{
|
|
ImportConsoleVariableValues();
|
|
}
|
|
#endif // #if WITH_EDITOR
|
|
}
|
|
|
|
#if WITH_EDITOR
|
|
void UTextureImportSettings::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
|
|
{
|
|
Super::PostEditChangeProperty(PropertyChangedEvent);
|
|
if (PropertyChangedEvent.Property)
|
|
{
|
|
ExportValuesToConsoleVariables(PropertyChangedEvent.Property);
|
|
}
|
|
}
|
|
#endif // #if WITH_EDITOR
|