| 578 | } |
| 579 | |
| 580 | void TSStatic::onRemove() |
| 581 | { |
| 582 | SAFE_DELETE(mPhysicsRep); |
| 583 | |
| 584 | // Accumulation |
| 585 | if (isClientObject() && mShapeInstance) |
| 586 | { |
| 587 | if (mShapeInstance->hasAccumulation()) |
| 588 | AccumulationVolume::removeObject(this); |
| 589 | } |
| 590 | |
| 591 | mConvexList->nukeList(); |
| 592 | |
| 593 | removeFromScene(); |
| 594 | |
| 595 | // Remove the resource change signal. |
| 596 | //ResourceManager::get().getChangedSignal().remove(this, &TSStatic::_onResourceChanged); |
| 597 | |
| 598 | delete mShapeInstance; |
| 599 | mShapeInstance = NULL; |
| 600 | |
| 601 | mAmbientThread = NULL; |
| 602 | if (isClientObject()) |
| 603 | mCubeReflector.unregisterReflector(); |
| 604 | |
| 605 | Parent::onRemove(); |
| 606 | } |
| 607 | |
| 608 | void TSStatic::_onResourceChanged(const Torque::Path& path) |
| 609 | { |
nothing calls this directly
no test coverage detected