class
DeleteSceneObjectUndoableOperation
Inherits:
UndoableOperation
Deletes a scene object and allows you to restore it as an undo operation.
Public
Constructors
DeleteSceneObjectUndoableOperation
DeleteSceneObjectUndoableOperation(PrivatelyConstruct, const String &description, const HSceneObject &sceneObject)
Methods
staticExecute
static void Execute(const SPtr<UndoRedo> &undoRedo, const HSceneObject &sceneObject, const String &description = StringUtility::kBlank)
Creates and executes the operation on the provided scene object.
Automatically registers the operation with undo/redo system.
- undoRedo
- Undo/redo system to register the operation with.
- sceneObject
- Scene object to delete.
- description
- Optional description of what exactly the operation does.
Commit
void Commit() override
Applies the command, committing the change.
Revert
void Revert() override
Reverts the command, reverting the change previously done with commit().
Private
Fields
mSceneObject
HSceneObject mSceneObject
mSerialized
SPtr<SerializedSceneObject> mSerialized