| 211 | //----------------------------------------------------------------------------- |
| 212 | |
| 213 | void DecalRoadUpdateEvent::process( SimObject *object ) |
| 214 | { |
| 215 | DecalRoad *road = dynamic_cast<DecalRoad*>( object ); |
| 216 | AssertFatal( road, "DecalRoadRegenEvent::process - wasn't a DecalRoad" ); |
| 217 | |
| 218 | // Inform clients to perform the update. |
| 219 | road->setMaskBits( mMask ); |
| 220 | |
| 221 | if ( !road->isProperlyAdded() ) |
| 222 | return; |
| 223 | |
| 224 | // Perform the server side update. |
| 225 | if ( mMask & DecalRoad::TerrainChangedMask ) |
| 226 | { |
| 227 | road->_generateEdges(); |
| 228 | } |
| 229 | if ( mMask & DecalRoad::GenEdgesMask ) |
| 230 | { |
| 231 | // Server has already done this. |
| 232 | //road->_generateEdges(); |
| 233 | } |
| 234 | if ( mMask & DecalRoad::ReClipMask ) |
| 235 | { |
| 236 | // Server does not need to capture verts. |
| 237 | road->_captureVerts(); |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | |
| 242 | //------------------------------------------------------------------------------ |
nothing calls this directly
no test coverage detected