| 484 | //------------------------------------------------------------------------------ |
| 485 | |
| 486 | bool fxShapeReplicator::onAdd() |
| 487 | { |
| 488 | if(!Parent::onAdd()) |
| 489 | return(false); |
| 490 | |
| 491 | // Add the Replicator to the Replicator Set. |
| 492 | dynamic_cast<SimSet*>(Sim::findObject("fxReplicatorSet"))->addObject(this); |
| 493 | |
| 494 | // Set Default Object Box. |
| 495 | mObjBox.minExtents.set( -0.5, -0.5, -0.5 ); |
| 496 | mObjBox.maxExtents.set( 0.5, 0.5, 0.5 ); |
| 497 | resetWorldBox(); |
| 498 | |
| 499 | // Add to Scene. |
| 500 | setRenderTransform(mObjToWorld); |
| 501 | addToScene(); |
| 502 | |
| 503 | // Register for notification when GhostAlways objects are done loading |
| 504 | NetConnection::smGhostAlwaysDone.notify( this, &fxShapeReplicator::onGhostAlwaysDone ); |
| 505 | |
| 506 | return true; |
| 507 | } |
| 508 | |
| 509 | //------------------------------------------------------------------------------ |
| 510 |
nothing calls this directly
no test coverage detected