mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 00:47:05 +00:00
Fully implemented delete, added an easy-to-use ID lookup system for undo commands, fixed a bunch of crashes when undoing/redoing after creating/deleting an object
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
#define CCHANGELAYERCOMMAND_H
|
||||
|
||||
#include "IUndoCommand.h"
|
||||
#include "ObjReferences.h"
|
||||
#include "Editor/WorldEditor/CWorldEditor.h"
|
||||
#include <Core/Scene/CScriptNode.h>
|
||||
|
||||
class CChangeLayerCommand : public IUndoCommand
|
||||
{
|
||||
QList<CScriptNode*> mNodeList;
|
||||
QMap<CScriptNode*, CScriptLayer*> mOldLayers;
|
||||
CNodePtrList mNodes;
|
||||
QMap<u32, CScriptLayer*> mOldLayers;
|
||||
CScriptLayer *mpNewLayer;
|
||||
CWorldEditor *mpEditor;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user