You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
code in ActionInterval.cpp like this:
void ActionInterval::step(float dt)
{
if (_firstTick)
{
_firstTick = false;
_elapsed = 0;
}
else
{
_elapsed += dt;
}
float updateDt = std::max(0.0f, // needed for rewind. elapsed could be negative
std::min(1.0f, _elapsed / _duration)
);
if (sendUpdateEventToScript(updateDt, this)) return;
this->update(updateDt);
_done = _elapsed >= _duration;
}
" if (sendUpdateEventToScript(updateDt, this)) return;"
Code in this line will always return if your project has bound to JS.
And _done will always be false. So ActionManager won't stop it naturally.
I have committed a pull request. #20394
The text was updated successfully, but these errors were encountered:
Steps to Reproduce:
code in ActionInterval.cpp like this:
void ActionInterval::step(float dt)
{
if (_firstTick)
{
_firstTick = false;
_elapsed = 0;
}
else
{
_elapsed += dt;
}
}
" if (sendUpdateEventToScript(updateDt, this)) return;"
Code in this line will always return if your project has bound to JS.
And _done will always be false. So ActionManager won't stop it naturally.
I have committed a pull request. #20394
The text was updated successfully, but these errors were encountered: