| 221 | } |
| 222 | |
| 223 | TerrainBlock::~TerrainBlock() |
| 224 | { |
| 225 | // Kill collision |
| 226 | mTerrainConvexList.nukeList(); |
| 227 | |
| 228 | SAFE_DELETE(mLightMap); |
| 229 | mLightMapTex = NULL; |
| 230 | |
| 231 | #ifdef TORQUE_TOOLS |
| 232 | TerrainEditor* editor = dynamic_cast<TerrainEditor*>(Sim::findObject("ETerrainEditor")); |
| 233 | if (editor) |
| 234 | editor->detachTerrain(this); |
| 235 | #endif |
| 236 | deleteZodiacPrimitiveBuffer(); |
| 237 | |
| 238 | SAFE_RELEASE(mDetailTextureArray); |
| 239 | SAFE_RELEASE(mMacroTextureArray); |
| 240 | SAFE_RELEASE(mNormalTextureArray); |
| 241 | SAFE_RELEASE(mOrmTextureArray); |
| 242 | } |
| 243 | |
| 244 | void TerrainBlock::_onTextureEvent( GFXTexCallbackCode code ) |
| 245 | { |
nothing calls this directly
no test coverage detected