mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-03 11:45:59 +00:00
CRotateNodeCommand: Make use of override where applicable
This commit is contained in:
parent
c118703ce5
commit
fc2d48df87
@ -3,9 +3,7 @@
|
||||
#include "Editor/INodeEditor.h"
|
||||
|
||||
CRotateNodeCommand::CRotateNodeCommand()
|
||||
: IUndoCommand("Rotate"),
|
||||
mpEditor(nullptr),
|
||||
mCommandEnded(false)
|
||||
: IUndoCommand("Rotate")
|
||||
{
|
||||
}
|
||||
|
||||
@ -19,8 +17,7 @@ CRotateNodeCommand::CRotateNodeCommand(
|
||||
ETransformSpace TransformSpace
|
||||
)
|
||||
: IUndoCommand("Rotate"),
|
||||
mpEditor(pEditor),
|
||||
mCommandEnded(false)
|
||||
mpEditor(pEditor)
|
||||
{
|
||||
mNodeList.reserve(rkNodes.size());
|
||||
|
||||
|
@ -18,18 +18,19 @@ class CRotateNodeCommand : public IUndoCommand
|
||||
CQuaternion NewRot;
|
||||
};
|
||||
QList<SNodeRotate> mNodeList;
|
||||
INodeEditor *mpEditor;
|
||||
bool mCommandEnded;
|
||||
INodeEditor *mpEditor = nullptr;
|
||||
bool mCommandEnded = false;
|
||||
|
||||
public:
|
||||
CRotateNodeCommand();
|
||||
CRotateNodeCommand(INodeEditor *pEditor, const QList<CSceneNode*>& rkNodes, bool UsePivot, const CVector3f& rkPivot, const CQuaternion& rkPivotRotation, const CQuaternion& rkDelta, ETransformSpace TransformSpace);
|
||||
~CRotateNodeCommand();
|
||||
int id() const;
|
||||
bool mergeWith(const QUndoCommand *pkOther);
|
||||
void undo();
|
||||
void redo();
|
||||
bool AffectsCleanState() const { return true; }
|
||||
~CRotateNodeCommand() override;
|
||||
|
||||
int id() const override;
|
||||
bool mergeWith(const QUndoCommand *pkOther) override;
|
||||
void undo() override;
|
||||
void redo() override;
|
||||
bool AffectsCleanState() const override { return true; }
|
||||
static CRotateNodeCommand* End();
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user