mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[unity] Fixed extension method VertexAttachment.GetLocalVertices ignoring deform timelines. Closes #1990.
This commit is contained in:
parent
fe635d9a79
commit
506a1abf53
@ -233,7 +233,7 @@ namespace Spine.Unity {
|
|||||||
buffer = buffer ?? new Vector2[bufferTargetSize];
|
buffer = buffer ?? new Vector2[bufferTargetSize];
|
||||||
if (buffer.Length < bufferTargetSize) throw new System.ArgumentException(string.Format("Vector2 buffer too small. {0} requires an array of size {1}. Use the attachment's .WorldVerticesLength to get the correct size.", va.Name, floatsCount), "buffer");
|
if (buffer.Length < bufferTargetSize) throw new System.ArgumentException(string.Format("Vector2 buffer too small. {0} requires an array of size {1}. Use the attachment's .WorldVerticesLength to get the correct size.", va.Name, floatsCount), "buffer");
|
||||||
|
|
||||||
if (va.Bones == null) {
|
if (va.Bones == null && va.DeformAttachment == null) {
|
||||||
var localVerts = va.Vertices;
|
var localVerts = va.Vertices;
|
||||||
for (int i = 0; i < bufferTargetSize; i++) {
|
for (int i = 0; i < bufferTargetSize; i++) {
|
||||||
int j = i * 2;
|
int j = i * 2;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user