mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[cpp] Fix compilation error in SkeletonBinary.cpp after merge.
This commit is contained in:
parent
4f3fcc5ed0
commit
9d2c16f388
@ -1254,7 +1254,8 @@ Animation *SkeletonBinary::readAnimation(const String &name, DataInput *input, S
|
|||||||
int frameLast = frameCount - 1;
|
int frameLast = frameCount - 1;
|
||||||
|
|
||||||
switch (timelineType) {
|
switch (timelineType) {
|
||||||
case ATTACHMENT_DEFORM: {
|
case ATTACHMENT_DEFORM: {
|
||||||
|
VertexAttachment *attachment = static_cast<VertexAttachment *>(baseAttachment);
|
||||||
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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user