| 1123 | } |
| 1124 | |
| 1125 | void ShapeBase::onRemove() |
| 1126 | { |
| 1127 | mConvexList->nukeList(); |
| 1128 | |
| 1129 | Parent::onRemove(); |
| 1130 | |
| 1131 | // Stop any running sounds on the client |
| 1132 | if (isGhost()) |
| 1133 | for (S32 i = 0; i < MaxSoundThreads; i++) |
| 1134 | stopAudio(i); |
| 1135 | |
| 1136 | // Accumulation and environment mapping |
| 1137 | if (isClientObject() && mShapeInstance) |
| 1138 | { |
| 1139 | if (mShapeInstance->hasAccumulation()) |
| 1140 | AccumulationVolume::removeObject(this); |
| 1141 | } |
| 1142 | |
| 1143 | if ( isClientObject() ) |
| 1144 | { |
| 1145 | mCubeReflector.unregisterReflector(); |
| 1146 | } |
| 1147 | } |
| 1148 | |
| 1149 | |
| 1150 | void ShapeBase::onSceneRemove() |
nothing calls this directly
no test coverage detected