Fix OnCommand being played twice when song BGA layers first gain focus
This commit is contained in:
@@ -993,8 +993,11 @@ void BGAnimationLayer::GainingFocus( float fRate, bool bRewindMovie, bool bLoop
|
|||||||
m_SubActors[0]->Command( ssprintf("rate,%f",fRate) );
|
m_SubActors[0]->Command( ssprintf("rate,%f",fRate) );
|
||||||
|
|
||||||
if( m_fRepeatCommandEverySeconds == -1 ) // if not repeating
|
if( m_fRepeatCommandEverySeconds == -1 ) // if not repeating
|
||||||
|
{
|
||||||
|
StopTweening();
|
||||||
PlayCommand( "On" );
|
PlayCommand( "On" );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void BGAnimationLayer::LosingFocus()
|
void BGAnimationLayer::LosingFocus()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user