mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[unity] Fixed BoundingBoxFollowerGraphic vertices being 0.0 in some occasions, closes #1999. Problem introduced in commit 506a1ab, see issue #1990.
This commit is contained in:
parent
1544b6cca9
commit
7400da8896
@ -233,7 +233,7 @@ namespace Spine.Unity {
|
||||
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 (va.Bones == null && va.DeformAttachment == null) {
|
||||
if (va.Bones == null && slot.Deform.Count == 0) {
|
||||
var localVerts = va.Vertices;
|
||||
for (int i = 0; i < bufferTargetSize; i++) {
|
||||
int j = i * 2;
|
||||
@ -299,7 +299,6 @@ namespace Spine.Unity {
|
||||
|
||||
namespace Spine {
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public struct BoneMatrix {
|
||||
public float a, b, c, d, x, y;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user