Simplify: Move LoadChildrenFromNode into ActorFrame::LoadFromNode.

This also makes loading consistent between ActorFrame, ActorScroller and DActorScroller.
Previously, we ran ActorFrame::LoadFromNode before adding children, which caused InitCommand
to be run before adding children.
This commit is contained in:
Glenn Maynard
2005-10-07 02:55:47 +00:00
parent f875098dac
commit 91815ef03e
4 changed files with 9 additions and 25 deletions
+3
View File
@@ -69,6 +69,9 @@ ActorFrame::ActorFrame( const ActorFrame &cpy ):
void ActorFrame::LoadFromNode( const CString& sDir, const XNode* pNode )
{
if( AutoLoadChildren() )
LoadChildrenFromNode( sDir, pNode );
Actor::LoadFromNode( sDir, pNode );
pNode->GetAttrValue( "UpdateRate", m_fUpdateRate );