You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This is so UI artists can set that to "always" for UI work without affecting other users. #rb Dan.Thompson [CL 35400087 by fabian giesen in ue5-main branch]
29 lines
951 B
C++
29 lines
951 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "TextureImportUserSettings.h"
|
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(TextureImportUserSettings)
|
|
|
|
UTextureImportUserSettings::UTextureImportUserSettings(const FObjectInitializer& ObjectInitializer)
|
|
: Super(ObjectInitializer)
|
|
{
|
|
SectionName = TEXT("Importing");
|
|
}
|
|
|
|
namespace UE::TextureUtilitiesCommon {
|
|
TEXTUREUTILITIESCOMMON_API ETextureImportPNGInfill GetPNGInfillSetting()
|
|
{
|
|
// Try using per-user setting if present
|
|
ETextureImportPNGInfill PNGInfill = GetDefault<UTextureImportUserSettings>()->PNGInfill;
|
|
if (PNGInfill == ETextureImportPNGInfill::Default)
|
|
{
|
|
// If no user setting, use project setting if set, legacy settings/defaults if not.
|
|
PNGInfill = GetDefault<UTextureImportSettings>()->GetPNGInfillMapDefault();
|
|
}
|
|
|
|
// "Default" should've been mapped to a concrete setting now.
|
|
check(PNGInfill != ETextureImportPNGInfill::Default);
|
|
return PNGInfill;
|
|
}
|
|
}
|