mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +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];
|
||||
if (percentPosition) position *= pathLength;
|
||||
if (percentSpacing) {
|
||||
for (var i : int = 0; i < spacesCount; i++)
|
||||
for (var i : int = 1; i < spacesCount; i++)
|
||||
spaces[i] *= pathLength;
|
||||
}
|
||||
this._world.length = 8;
|
||||
@ -305,7 +305,7 @@ package spine {
|
||||
else
|
||||
position *= pathLength / path.lengths[curveCount - 1];
|
||||
if (percentSpacing) {
|
||||
for (i = 0; i < spacesCount; i++)
|
||||
for (i = 1; i < spacesCount; i++)
|
||||
spaces[i] *= pathLength;
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user