propagate ProcessMessages. There are still some cases where we're
handling children directly; as those come up, they'll either propagate this message or (preferably) be converted to use AddChild and let ActorFrame do the work.
This commit is contained in:
@@ -228,6 +228,18 @@ void ActorFrame::UpdateInternal( float fDeltaTime )
|
||||
}
|
||||
}
|
||||
|
||||
void ActorFrame::ProcessMessages( float fDeltaTime )
|
||||
{
|
||||
Actor::ProcessMessages( fDeltaTime );
|
||||
|
||||
// update all sub-Actors
|
||||
for( vector<Actor*>::iterator it=m_SubActors.begin(); it!=m_SubActors.end(); ++it )
|
||||
{
|
||||
Actor *pActor = *it;
|
||||
pActor->ProcessMessages( fDeltaTime );
|
||||
}
|
||||
}
|
||||
|
||||
#define PropagateActorFrameCommand( cmd ) \
|
||||
void ActorFrame::cmd() \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user