EM_Task/UnrealEd/Private/EditorUndoClient.cpp

20 lines
360 B
C++
Raw Normal View History

2026-02-13 16:18:33 +08:00
// 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);
}
}