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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user