You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This represents UE4/Main @ 17030256 and Dev-PerfTest @ 17029914 [CL 17060422 by aurel cordonnier in ue5-main branch]
79 lines
2.4 KiB
C++
79 lines
2.4 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Editor/EditorPerProjectUserSettings.h"
|
|
#include "Misc/Paths.h"
|
|
#include "HAL/IConsoleManager.h"
|
|
#include "UnrealEdMisc.h"
|
|
#include "BlueprintPaletteFavorites.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "EditorPerProjectUserSettings"
|
|
|
|
/// @cond DOXYGEN_WARNINGS
|
|
|
|
UEditorPerProjectUserSettings::UEditorPerProjectUserSettings(const FObjectInitializer& ObjectInitializer)
|
|
: Super(ObjectInitializer)
|
|
{
|
|
//Default to high quality
|
|
BlueprintFavorites = CreateDefaultSubobject<UBlueprintPaletteFavorites>(TEXT("BlueprintFavorites"));
|
|
SCSViewportCameraSpeed = 4;
|
|
AssetViewerProfileIndex = 0;
|
|
bAnimationReimportWarnings = false;
|
|
|
|
bDisplayBlackboardKeysInAlphabeticalOrder = false;
|
|
|
|
SimplygonServerIP = "127.0.0.1";
|
|
SimplygonSwarmDelay = 5000;
|
|
bEnableSwarmDebugging = false;
|
|
SwarmNumOfConcurrentJobs = 16;
|
|
SwarmMaxUploadChunkSizeInMB = 100;
|
|
SwarmIntermediateFolder = FPaths::ConvertRelativePathToFull(FPaths::ProjectIntermediateDir() + TEXT("Simplygon/"));
|
|
PreviewFeatureLevel = GMaxRHIFeatureLevel;
|
|
PreviewShaderFormatName = NAME_None;
|
|
bPreviewFeatureLevelActive = false;
|
|
bPreviewFeatureLevelWasDefault = true;
|
|
PreviewDeviceProfileName = NAME_None;
|
|
}
|
|
|
|
void UEditorPerProjectUserSettings::PostInitProperties()
|
|
{
|
|
Super::PostInitProperties();
|
|
|
|
// if we last saved as the default or we somehow are loading a preview feature level higher than we can support,
|
|
// fall back to the current session's maximum feature level
|
|
if (bPreviewFeatureLevelWasDefault || PreviewFeatureLevel > GMaxRHIFeatureLevel)
|
|
{
|
|
PreviewFeatureLevel = GMaxRHIFeatureLevel;
|
|
PreviewShaderFormatName = NAME_None;
|
|
bPreviewFeatureLevelActive = false;
|
|
bPreviewFeatureLevelWasDefault = true;
|
|
PreviewDeviceProfileName = NAME_None;
|
|
}
|
|
}
|
|
|
|
#if WITH_EDITOR
|
|
void UEditorPerProjectUserSettings::PostEditChangeProperty( FPropertyChangedEvent& PropertyChangedEvent )
|
|
{
|
|
Super::PostEditChangeProperty(PropertyChangedEvent);
|
|
|
|
const FName Name = (PropertyChangedEvent.Property != nullptr) ? PropertyChangedEvent.Property->GetFName() : NAME_None;
|
|
|
|
if (Name == FName(TEXT("bUseCurvesForDistributions")))
|
|
{
|
|
extern ENGINE_API uint32 GDistributionType;
|
|
//GDistributionType == 0 for curves
|
|
GDistributionType = (bUseCurvesForDistributions) ? 0 : 1;
|
|
}
|
|
|
|
if (!FUnrealEdMisc::Get().IsDeletePreferences())
|
|
{
|
|
SaveConfig();
|
|
}
|
|
|
|
UserSettingChangedEvent.Broadcast(Name);
|
|
}
|
|
#endif
|
|
|
|
/// @endcond
|
|
|
|
#undef LOCTEXT_NAMESPACE
|