MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _updateChildren

Method _updateChildren

Engine/source/T3D/prefab.cpp:425–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425void 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
447void Prefab::_onFileChanged( const Torque::Path &path )
448{

Callers

nothing calls this directly

Calls 7

findObjectByTypeMethod · 0.80
getClientObjectMethod · 0.80
sizeMethod · 0.45
setTransformMethod · 0.45
getTransformMethod · 0.45
setScaleMethod · 0.45
getScaleMethod · 0.45

Tested by

no test coverage detected