Selaa lähdekoodia

[cpp] Closes #1435, AnimationState#computeNotLast() was wrong.

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

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

@@ -1071,6 +1071,7 @@ void AnimationState::computeNotLast(TrackEntry *entry) {
 			AttachmentTimeline *timeline = static_cast<AttachmentTimeline *>(timelines[i]);
 			if (!_propertyIDs.contains(timeline->getSlotIndex())) {
 				_propertyIDs.add(timeline->getSlotIndex());
+			} else {
 				timelineMode[i] |= NotLast;
 			}
 		}