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

Method removeItem

Engine/source/forest/editor/forestUndo.cpp:105–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void ForestDeleteUndoAction::removeItem( const ForestItem &item )
106{
107 // Not 64bit safe!
108 // We store the datablock ID rather than the actual pointer
109 // since the pointer could go bad.
110 SimObjectId dataId = item.getData()->getId();
111
112 mItems.push_back( item );
113 mItems.last().setData( (ForestItemData*)(uintptr_t)dataId );
114 mData->removeItem( item.getKey(), item.getPosition() );
115}
116
117void ForestDeleteUndoAction::removeItem( const Vector<ForestItem> &itemList )
118{

Callers 5

deleteMeshSafeMethod · 0.45
deleteSelectionMethod · 0.45
_eraseMethod · 0.45
undoMethod · 0.45
redoMethod · 0.45

Calls 7

getIdMethod · 0.65
getDataMethod · 0.45
push_backMethod · 0.45
setDataMethod · 0.45
lastMethod · 0.45
getPositionMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected