mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-11 22:44:19 +00:00
Cleanup & refactoring
This commit is contained in:
@@ -43,14 +43,14 @@ CScaleNodeCommand::~CScaleNodeCommand()
|
||||
|
||||
int CScaleNodeCommand::id() const
|
||||
{
|
||||
return eScaleNodeCmd;
|
||||
return (int) EUndoCommand::ScaleNodeCmd;
|
||||
}
|
||||
|
||||
bool CScaleNodeCommand::mergeWith(const QUndoCommand *pkOther)
|
||||
{
|
||||
if (mCommandEnded) return false;
|
||||
|
||||
if (pkOther->id() == eScaleNodeCmd)
|
||||
if (pkOther->id() == (int) EUndoCommand::ScaleNodeCmd)
|
||||
{
|
||||
const CScaleNodeCommand *pkCmd = static_cast<const CScaleNodeCommand*>(pkOther);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user