mirror of https://github.com/axmolengine/axmol.git
fix ReEntry a same frame when scale action's speed.
This commit is contained in:
parent
0479cca364
commit
e6fb2f8924
|
@ -197,10 +197,12 @@ void ActionTimeline::step(float delta)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_time += delta * _timeSpeed;
|
_time += delta * _timeSpeed;
|
||||||
const float endtoffset = _time - _endFrame * _frameInternal;
|
float deltaCurrFrameTime = abs(_time - _currentFrame * _frameInternal);
|
||||||
|
if (deltaCurrFrameTime < _frameInternal)
|
||||||
|
return;
|
||||||
|
|
||||||
|
const float endtoffset = _time - _endFrame * _frameInternal;
|
||||||
if (endtoffset < _frameInternal)
|
if (endtoffset < _frameInternal)
|
||||||
{
|
{
|
||||||
_currentFrame = (int)(_time / _frameInternal);
|
_currentFrame = (int)(_time / _frameInternal);
|
||||||
|
|
Loading…
Reference in New Issue