You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb richard.malo #preflight skip #ROBOMERGE-AUTHOR: patrick.enfedaque #ROBOMERGE-SOURCE: CL 20630207 via CL 20630252 via CL 20630265 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017) [CL 20636330 by patrick enfedaque in ue5-main branch]
25 lines
816 B
C++
25 lines
816 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "LevelInstanceEditorSettings.h"
|
|
|
|
ULevelInstanceEditorSettings::ULevelInstanceEditorSettings()
|
|
{
|
|
}
|
|
|
|
ULevelInstanceEditorPerProjectUserSettings::ULevelInstanceEditorPerProjectUserSettings()
|
|
{
|
|
bAlwaysShowDialog = true;
|
|
PivotType = ELevelInstancePivotType::CenterMinZ;
|
|
}
|
|
|
|
void ULevelInstanceEditorPerProjectUserSettings::UpdateFrom(const FNewLevelInstanceParams& Params)
|
|
{
|
|
ULevelInstanceEditorPerProjectUserSettings* UserSettings = GetMutableDefault<ULevelInstanceEditorPerProjectUserSettings>();
|
|
|
|
if (Params.PivotType != UserSettings->PivotType || Params.bAlwaysShowDialog != UserSettings->bAlwaysShowDialog)
|
|
{
|
|
UserSettings->bAlwaysShowDialog = Params.bAlwaysShowDialog;
|
|
UserSettings->PivotType = Params.PivotType;
|
|
UserSettings->SaveConfig();
|
|
}
|
|
} |