Always call LoadAllCommands explicitly.
The hack to LoadAllCommands when playing a command was leading to weird interactions: If a theme element contained an OnCommand, it would cause the rest of the commands defined in metrics to not be loaded.
This commit is contained in:
@@ -29,7 +29,7 @@ FadingBanner::FadingBanner()
|
||||
for( int i=0; i<NUM_BANNERS; i++ )
|
||||
{
|
||||
m_Banner[i].SetName( "Banner" );
|
||||
ActorUtil::OnCommand( m_Banner[i], "FadingBanner" );
|
||||
ActorUtil::LoadAllCommandsAndOnCommand( m_Banner[i], "FadingBanner" );
|
||||
this->AddChild( &m_Banner[i] );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user