소스 검색

[ue] Closes #2251, fix shadowed local var.

Mario Zechner 2 년 전
부모
커밋
bcf268462d
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp

+ 1 - 2
spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp

@@ -1255,8 +1255,7 @@ Animation *SkeletonBinary::readAnimation(const String &name, DataInput *input, S
 				int frameLast = frameCount - 1;
 
 				switch (timelineType) {
-					case ATTACHMENT_DEFORM: {
-						VertexAttachment *attachment = static_cast<VertexAttachment *>(baseAttachment);
+					case ATTACHMENT_DEFORM: {						
 						bool weighted = attachment->_bones.size() > 0;
 						Vector<float> &vertices = attachment->_vertices;
 						int deformLength = weighted ? (int) vertices.size() / 3 * 2 : (int) vertices.size();