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

Method undo

Engine/source/forest/editor/forestUndo.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void ForestCreateUndoAction::undo()
87{
88 for ( S32 i = mItems.size()-1; i >= 0; i-- )
89 {
90 const ForestItem &item = mItems[i];
91 mData->removeItem( item.getKey(), item.getPosition() );
92 }
93
94 mEditor->onUndoAction();
95}
96
97
98

Callers

nothing calls this directly

Calls 10

findObjectFunction · 0.50
errorfFunction · 0.50
sizeMethod · 0.45
removeItemMethod · 0.45
getPositionMethod · 0.45
onUndoActionMethod · 0.45
getDataMethod · 0.45
addItemMethod · 0.45
getTransformMethod · 0.45
getScaleMethod · 0.45

Tested by

no test coverage detected