Files
FC1/Editor/IKeyDlg.cpp
romkazvo 34d6c5d489 123
2023-08-07 19:29:24 +08:00

45 lines
1.2 KiB
C++

////////////////////////////////////////////////////////////////////////////
//
// Crytek Engine Source File.
// Copyright (C), Crytek Studios, 2002.
// -------------------------------------------------------------------------
// File name: ikeydlg.cpp
// Version: v1.00
// Created: 21/8/2002 by Timur.
// Compilers: Visual Studio.NET
// Description:
// -------------------------------------------------------------------------
// History:
//
////////////////////////////////////////////////////////////////////////////
#include "StdAfx.h"
#include "ikeydlg.h"
#include "TrackViewUndo.h"
IKeyDlg::IKeyDlg(UINT nIDTemplate, CWnd *pParentWnd) :
CDialog(nIDTemplate, pParentWnd)
{
m_bNoReloadKey = false;
}
//////////////////////////////////////////////////////////////////////////
void IKeyDlg::RefreshTrackView()
{
// Prevent endless recursion, when SetKey calls refersh.
m_bNoReloadKey = true;
GetIEditor()->UpdateTrackView(true);
m_bNoReloadKey = false;
}
//////////////////////////////////////////////////////////////////////////
void IKeyDlg::RecordTrackUndo()
{
if (m_track)
{
CUndo undo("Track Modify");
CUndo::Record( new CUndoTrackObject(m_track) );
}
}