mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[c] Fixed deform timelines not mixing from/to setup pose. #920
This commit is contained in:
parent
2b5058f020
commit
63459d8531
@ -806,7 +806,7 @@ void _spDeformTimeline_apply (const spTimeline* timeline, spSkeleton* skeleton,
|
|||||||
slot->attachmentVerticesCapacity = vertexCount;
|
slot->attachmentVerticesCapacity = vertexCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (slot->attachmentVerticesCount != vertexCount) alpha = 1; /* Don't mix from uninitialized slot vertices. */
|
if (slot->attachmentVerticesCount != vertexCount && !setupPose) alpha = 1; /* Don't mix from uninitialized slot vertices. */
|
||||||
slot->attachmentVerticesCount = vertexCount;
|
slot->attachmentVerticesCount = vertexCount;
|
||||||
|
|
||||||
frameVertices = self->frameVertices;
|
frameVertices = self->frameVertices;
|
||||||
|
|||||||
@ -603,7 +603,7 @@ var spine;
|
|||||||
}
|
}
|
||||||
var frameVertices = this.frameVertices;
|
var frameVertices = this.frameVertices;
|
||||||
var vertexCount = frameVertices[0].length;
|
var vertexCount = frameVertices[0].length;
|
||||||
if (verticesArray.length != vertexCount)
|
if (verticesArray.length != vertexCount && !setupPose)
|
||||||
alpha = 1;
|
alpha = 1;
|
||||||
var vertices = spine.Utils.setArraySize(verticesArray, vertexCount);
|
var vertices = spine.Utils.setArraySize(verticesArray, vertexCount);
|
||||||
if (time >= frames[frames.length - 1]) {
|
if (time >= frames[frames.length - 1]) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user