mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-09 05:27:41 +00:00
Cleanup & refactoring
This commit is contained in:
@@ -31,14 +31,14 @@ CTranslateNodeCommand::CTranslateNodeCommand(INodeEditor *pEditor, const QList<C
|
||||
|
||||
int CTranslateNodeCommand::id() const
|
||||
{
|
||||
return eTranslateNodeCmd;
|
||||
return (int) EUndoCommand::TranslateNodeCmd;
|
||||
}
|
||||
|
||||
bool CTranslateNodeCommand::mergeWith(const QUndoCommand *pkOther)
|
||||
{
|
||||
if (mCommandEnded) return false;
|
||||
|
||||
if (pkOther->id() == eTranslateNodeCmd)
|
||||
if (pkOther->id() == (int) EUndoCommand::TranslateNodeCmd)
|
||||
{
|
||||
const CTranslateNodeCommand *pkCmd = static_cast<const CTranslateNodeCommand*>(pkOther);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user