| 433 | } |
| 434 | |
| 435 | void TSStatic::onRemove() |
| 436 | { |
| 437 | SAFE_DELETE( mPhysicsRep ); |
| 438 | |
| 439 | // Accumulation |
| 440 | if ( isClientObject() && mShapeInstance ) |
| 441 | { |
| 442 | if ( mShapeInstance->hasAccumulation() ) |
| 443 | AccumulationVolume::removeObject(this); |
| 444 | } |
| 445 | |
| 446 | mConvexList->nukeList(); |
| 447 | |
| 448 | removeFromScene(); |
| 449 | |
| 450 | // Remove the resource change signal. |
| 451 | ResourceManager::get().getChangedSignal().remove( this, &TSStatic::_onResourceChanged ); |
| 452 | |
| 453 | delete mShapeInstance; |
| 454 | mShapeInstance = NULL; |
| 455 | |
| 456 | mAmbientThread = NULL; |
| 457 | if ( isClientObject() ) |
| 458 | mCubeReflector.unregisterReflector(); |
| 459 | |
| 460 | Parent::onRemove(); |
| 461 | } |
| 462 | |
| 463 | void TSStatic::_onResourceChanged( const Torque::Path &path ) |
| 464 | { |
nothing calls this directly
no test coverage detected