| 423 | } |
| 424 | |
| 425 | void Prefab::_updateChildren() |
| 426 | { |
| 427 | if ( !mChildGroup ) |
| 428 | return; |
| 429 | |
| 430 | Vector<SceneObject*> foundObjects; |
| 431 | mChildGroup->findObjectByType( foundObjects ); |
| 432 | |
| 433 | for ( S32 i = 0; i < foundObjects.size(); i++ ) |
| 434 | { |
| 435 | SceneObject *child = foundObjects[i]; |
| 436 | |
| 437 | _updateChildTransform( child ); |
| 438 | |
| 439 | if ( child->getClientObject() ) |
| 440 | { |
| 441 | ((SceneObject*)child->getClientObject())->setTransform( child->getTransform() ); |
| 442 | ((SceneObject*)child->getClientObject())->setScale( child->getScale() ); |
| 443 | } |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | void Prefab::_onFileChanged( const Torque::Path &path ) |
| 448 | { |
nothing calls this directly
no test coverage detected