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