| 103 | } |
| 104 | |
| 105 | void 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 | |
| 117 | void ForestDeleteUndoAction::removeItem( const Vector<ForestItem> &itemList ) |
| 118 | { |
no test coverage detected