mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-05 20:55:59 +00:00
CScaleNodeCommand: Make use of override where applicable
This commit is contained in:
parent
fc2d48df87
commit
8c4e16d51e
@ -3,16 +3,13 @@
|
||||
#include "Editor/INodeEditor.h"
|
||||
|
||||
CScaleNodeCommand::CScaleNodeCommand()
|
||||
: IUndoCommand("Scale"),
|
||||
mpEditor(nullptr),
|
||||
mCommandEnded(false)
|
||||
: IUndoCommand("Scale")
|
||||
{
|
||||
}
|
||||
|
||||
CScaleNodeCommand::CScaleNodeCommand(INodeEditor *pEditor, const QList<CSceneNode*>& rkNodes, bool UsePivot, const CVector3f& rkPivot, const CVector3f& rkDelta)
|
||||
: IUndoCommand("Scale"),
|
||||
mpEditor(pEditor),
|
||||
mCommandEnded(false)
|
||||
mpEditor(pEditor)
|
||||
{
|
||||
mNodeList.reserve(rkNodes.size());
|
||||
|
||||
|
@ -18,18 +18,19 @@ class CScaleNodeCommand : public IUndoCommand
|
||||
CVector3f NewScale;
|
||||
};
|
||||
QList<SNodeScale> mNodeList;
|
||||
INodeEditor *mpEditor;
|
||||
bool mCommandEnded;
|
||||
INodeEditor *mpEditor = nullptr;
|
||||
bool mCommandEnded = false;
|
||||
|
||||
public:
|
||||
CScaleNodeCommand();
|
||||
CScaleNodeCommand(INodeEditor *pEditor, const QList<CSceneNode*>& rkNodes, bool UsePivot, const CVector3f& rkPivot, const CVector3f& rkDelta);
|
||||
~CScaleNodeCommand();
|
||||
int id() const;
|
||||
bool mergeWith(const QUndoCommand *pkOther);
|
||||
void undo();
|
||||
void redo();
|
||||
bool AffectsCleanState() const { return true; }
|
||||
~CScaleNodeCommand() override;
|
||||
|
||||
int id() const override;
|
||||
bool mergeWith(const QUndoCommand *pkOther) override;
|
||||
void undo() override;
|
||||
void redo() override;
|
||||
bool AffectsCleanState() const override { return true; }
|
||||
static CScaleNodeCommand* End();
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user