add actor name for easier debugging
This commit is contained in:
@@ -188,6 +188,7 @@ void BGAnimation::LoadFromNode( const CString& sDir, const XNode* pNode )
|
|||||||
if( pNode->GetAttrValue( "LengthSeconds", fLengthSeconds ) )
|
if( pNode->GetAttrValue( "LengthSeconds", fLengthSeconds ) )
|
||||||
{
|
{
|
||||||
Actor *pActor = new Actor;
|
Actor *pActor = new Actor;
|
||||||
|
pActor->SetName( "BGAnimation dummy" );
|
||||||
pActor->SetHidden( true );
|
pActor->SetHidden( true );
|
||||||
apActorCommands ap( new ActorCommands(ssprintf("sleep,%f",fLengthSeconds)) );
|
apActorCommands ap( new ActorCommands(ssprintf("sleep,%f",fLengthSeconds)) );
|
||||||
pActor->AddCommand( "On", ap );
|
pActor->AddCommand( "On", ap );
|
||||||
|
|||||||
Reference in New Issue
Block a user