mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 00:47:05 +00:00
Added Editor Properties widget at the top of every World Editor tab, made tons of backend changes to get it to work properly
This commit is contained in:
22
src/Editor/Undo/CChangeLayerCommand.h
Normal file
22
src/Editor/Undo/CChangeLayerCommand.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef CCHANGELAYERCOMMAND_H
|
||||
#define CCHANGELAYERCOMMAND_H
|
||||
|
||||
#include "IUndoCommand.h"
|
||||
#include "Editor/WorldEditor/CWorldEditor.h"
|
||||
#include <Core/Scene/CScriptNode.h>
|
||||
|
||||
class CChangeLayerCommand : public IUndoCommand
|
||||
{
|
||||
QList<CScriptNode*> mNodeList;
|
||||
QMap<CScriptNode*, CScriptLayer*> mOldLayers;
|
||||
CScriptLayer *mpNewLayer;
|
||||
CWorldEditor *mpEditor;
|
||||
|
||||
public:
|
||||
CChangeLayerCommand(CWorldEditor *pEditor, const QList<CScriptNode*>& rkNodeList, CScriptLayer *pNewLayer);
|
||||
void undo();
|
||||
void redo();
|
||||
bool AffectsCleanState() const { return true; }
|
||||
};
|
||||
|
||||
#endif // CCHANGELAYERCOMMAND_H
|
||||
Reference in New Issue
Block a user