EM_Task/UnrealEd/Private/EditorUndoClient.cpp
Boshuang Zhao 5144a49c9b add
2026-02-13 16:18:33 +08:00

20 lines
360 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);
}
}