mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[as3] Fix path constraint for when path length is NaN. See #1230.
This commit is contained in:
parent
19fdea7d80
commit
9f8003a3b6
Binary file not shown.
@ -189,7 +189,7 @@ package spine {
|
|||||||
var pathLength : Number = lengths[curveCount];
|
var pathLength : Number = lengths[curveCount];
|
||||||
if (percentPosition) position *= pathLength;
|
if (percentPosition) position *= pathLength;
|
||||||
if (percentSpacing) {
|
if (percentSpacing) {
|
||||||
for (var i : int = 0; i < spacesCount; i++)
|
for (var i : int = 1; i < spacesCount; i++)
|
||||||
spaces[i] *= pathLength;
|
spaces[i] *= pathLength;
|
||||||
}
|
}
|
||||||
this._world.length = 8;
|
this._world.length = 8;
|
||||||
@ -305,7 +305,7 @@ package spine {
|
|||||||
else
|
else
|
||||||
position *= pathLength / path.lengths[curveCount - 1];
|
position *= pathLength / path.lengths[curveCount - 1];
|
||||||
if (percentSpacing) {
|
if (percentSpacing) {
|
||||||
for (i = 0; i < spacesCount; i++)
|
for (i = 1; i < spacesCount; i++)
|
||||||
spaces[i] *= pathLength;
|
spaces[i] *= pathLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user