pass pParentActor
This commit is contained in:
@@ -401,7 +401,7 @@ Actor* ActorUtil::MakeActor( const RString &sPath_, Actor *pParentActor, const X
|
|||||||
XmlFileUtil::CompileXNodeTree( &xml, sPath );
|
XmlFileUtil::CompileXNodeTree( &xml, sPath );
|
||||||
AnnotateXMLTree( &xml, sPath );
|
AnnotateXMLTree( &xml, sPath );
|
||||||
MergeActorXML( &xml, pParent );
|
MergeActorXML( &xml, pParent );
|
||||||
return ActorUtil::LoadFromNode( &xml );
|
return ActorUtil::LoadFromNode( &xml, pParentActor );
|
||||||
}
|
}
|
||||||
case FT_Lua:
|
case FT_Lua:
|
||||||
{
|
{
|
||||||
@@ -413,7 +413,7 @@ Actor* ActorUtil::MakeActor( const RString &sPath_, Actor *pParentActor, const X
|
|||||||
}
|
}
|
||||||
|
|
||||||
MergeActorXML( pNode.get(), pParent );
|
MergeActorXML( pNode.get(), pParent );
|
||||||
Actor *pRet = ActorUtil::LoadFromNode( pNode.get() );
|
Actor *pRet = ActorUtil::LoadFromNode( pNode.get(), pParentActor );
|
||||||
return pRet;
|
return pRet;
|
||||||
}
|
}
|
||||||
case FT_Directory:
|
case FT_Directory:
|
||||||
|
|||||||
Reference in New Issue
Block a user