Selaa lähdekoodia

[cpp] Apply left over time additively to track time of delayed TrackEntry. See #1504.

badlogic 6 vuotta sitten
vanhempi
commit
60ab78d4c1
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      spine-cpp/spine-cpp/src/spine/AnimationState.cpp

+ 1 - 1
spine-cpp/spine-cpp/src/spine/AnimationState.cpp

@@ -353,7 +353,7 @@ void AnimationState::update(float delta) {
 			float nextTime = current._trackLast - next->_delay;
 			if (nextTime >= 0) {
 				next->_delay = 0;
-				next->_trackTime = current._timeScale == 0 ? 0 : (nextTime / current._timeScale + delta) * next->_timeScale;
+				next->_trackTime += current._timeScale == 0 ? 0 : (nextTime / current._timeScale + delta) * next->_timeScale;
 				current._trackTime += currentDelta;
 				setCurrent(i, next, true);
 				while (next->_mixingFrom != NULL) {