MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / addToManager

Method addToManager

Engine/source/util/undo.cpp:73–85  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

71
72//-----------------------------------------------------------------------------
73void UndoAction::addToManager(UndoManager* theMan)
74{
75 if(theMan)
76 {
77 mUndoManager = theMan;
78 (*theMan).addAction(this);
79 }
80 else
81 {
82 mUndoManager = &UndoManager::getDefaultManager();
83 mUndoManager->addAction(this);
84 }
85}
86
87//-----------------------------------------------------------------------------
88// CompoundUndoAction

Callers 1

DefineEngineMethodFunction · 0.80

Calls 1

addActionMethod · 0.45

Tested by

no test coverage detected