Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

39 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "GizmoSettings.h"
#include "EditorInteractiveGizmoManager.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(GizmoSettings)
void UGizmoSettings::PostInitProperties()
{
Super::PostInitProperties();
bool bConfigNeedsUpdate = false;
PRAGMA_DISABLE_DEPRECATION_WARNINGS
if (bEnableNewGizmos_DEPRECATED)
{
UEditorInteractiveGizmoManager::SetUsesNewTRSGizmos(bEnableNewGizmos_DEPRECATED);
bEnableNewGizmos_DEPRECATED = false;
bConfigNeedsUpdate = true;
}
FGizmosParameters DefaultGizmosParameters;
if (GizmoParameters_DEPRECATED.bCtrlMiddleDoesY != DefaultGizmosParameters.bCtrlMiddleDoesY ||
GizmoParameters_DEPRECATED.bEnableExplicit != DefaultGizmosParameters.bEnableExplicit ||
GizmoParameters_DEPRECATED.RotateMode != DefaultGizmosParameters.RotateMode)
{
UEditorInteractiveGizmoManager::SetGizmosParameters(GizmoParameters_DEPRECATED);
bConfigNeedsUpdate = true;
}
PRAGMA_ENABLE_DEPRECATION_WARNINGS
if (bConfigNeedsUpdate)
{
SaveConfig();
}
}