mirror of https://github.com/axmolengine/axmol.git
Update CCMotionStreak.cpp
This commit is contained in:
parent
646f04f1c9
commit
edf0f5632e
|
@ -101,7 +101,7 @@ bool MotionStreak::initWithFade(float fade, float minSeg, float stroke, const Co
|
||||||
_stroke = stroke;
|
_stroke = stroke;
|
||||||
_fadeDelta = 1.0f / fade;
|
_fadeDelta = 1.0f / fade;
|
||||||
|
|
||||||
// Fix animation interval 0 because of vsync being off
|
// Fix #629 Motion streak vsync off crash
|
||||||
double interval = _director->getAnimationInterval();
|
double interval = _director->getAnimationInterval();
|
||||||
double fps = 1 / interval;
|
double fps = 1 / interval;
|
||||||
if (roundf(fps) == INFINITY)
|
if (roundf(fps) == INFINITY)
|
||||||
|
|
Loading…
Reference in New Issue