瀏覽代碼

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

badlogic 6 年之前
父節點
當前提交
5bbfa490bf
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;
 			}
 		}