mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[csharp] Fixed errors.
This commit is contained in:
parent
84fe30a2bf
commit
1a68239a83
@ -91,8 +91,8 @@ namespace Spine {
|
||||
if (scale) lengths = this.lengths.Resize(boneCount);
|
||||
for (int i = 0, n = spacesCount - 1; i < n;) {
|
||||
Bone bone = bonesItems[i];
|
||||
float setupLength = bone.data.length
|
||||
if (setupLength == 0) setupLength = 0.000000001;
|
||||
float setupLength = bone.data.length;
|
||||
if (setupLength == 0) setupLength = 0.000000001f;
|
||||
float x = setupLength * bone.a, y = setupLength * bone.c;
|
||||
float length = (float)Math.Sqrt(x * x + y * y);
|
||||
if (scale) lengths.Items[i] = setupLength;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user