bind normally; call LoadFromAniDir

This commit is contained in:
Glenn Maynard
2006-10-14 03:51:33 +00:00
parent 20450d0918
commit bf7da90f59
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -7,6 +7,8 @@
#include "Foreach.h"
#include "LuaManager.h"
REGISTER_ACTOR_CLASS(BGAnimation)
BGAnimation::BGAnimation()
{
}
@@ -144,6 +146,10 @@ void BGAnimation::LoadFromAniDir( const RString &_sAniDir )
void BGAnimation::LoadFromNode( const XNode* pNode )
{
RString sDir;
if( pNode->GetAttrValue("AniDir", sDir) )
LoadFromAniDir( sDir );
ActorFrame::LoadFromNode( pNode );
/* Backwards-compatibility: if a "LengthSeconds" value is present, create a dummy