Files
UnrealEngine/Engine/Source/Editor/UnrealEd/Private/EditorUndoClient.cpp
2025-05-18 13:04:45 +08:00

20 lines
330 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "EditorUndoClient.h"
#include "Editor.h"
FEditorUndoClient::~FEditorUndoClient()
{
if (GEditor)
{
GEditor->UnregisterForUndo(this);
}
}
FSelfRegisteringEditorUndoClient::FSelfRegisteringEditorUndoClient()
{
if (GEditor)
{
GEditor->RegisterForUndo(this);
}
}