mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-08-01 17:55:39 +00:00
24 lines
570 B
C++
24 lines
570 B
C++
#ifndef CCLONESELECTIONCOMMAND_H
|
|
#define CCLONESELECTIONCOMMAND_H
|
|
|
|
#include "IUndoCommand.h"
|
|
#include "ObjReferences.h"
|
|
#include "Editor/WorldEditor/CWorldEditor.h"
|
|
|
|
class CCloneSelectionCommand : public IUndoCommand
|
|
{
|
|
CWorldEditor *mpEditor;
|
|
CNodePtrList mOriginalSelection;
|
|
CNodePtrList mNodesToClone;
|
|
CNodePtrList mClonedNodes;
|
|
CInstancePtrList mLinkedInstances;
|
|
|
|
public:
|
|
CCloneSelectionCommand(INodeEditor *pEditor);
|
|
void undo();
|
|
void redo();
|
|
bool AffectsCleanState() const { return true; }
|
|
};
|
|
|
|
#endif // CCLONESELECTIONCOMMAND_H
|