|
|
@ -73,6 +73,6 @@ void AnimatedTexture::processAnimation()
|
|
|
|
AnimatedTexturePtr self = asAnimatedTexture();
|
|
|
|
AnimatedTexturePtr self = asAnimatedTexture();
|
|
|
|
|
|
|
|
|
|
|
|
// continue to animate only if something still referencing this texture
|
|
|
|
// continue to animate only if something still referencing this texture
|
|
|
|
if(self.use_count() > 1)
|
|
|
|
if(self.use_count() > 2)
|
|
|
|
g_dispatcher.scheduleEvent(std::bind(&AnimatedTexture::processAnimation, self), m_framesDelay[m_currentFrame]);
|
|
|
|
g_dispatcher.scheduleEvent(std::bind(&AnimatedTexture::processAnimation, self), m_framesDelay[m_currentFrame]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|