mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-05 18:26:52 +08:00
[unity] Fixed json curve import: was mis-interpreting curves as linear instead of a smooth curve. Closes #1411.
This commit is contained in:
parent
e898ff829c
commit
234daf516e
@ -855,9 +855,7 @@ namespace Spine {
|
|||||||
if (curveObject is string)
|
if (curveObject is string)
|
||||||
timeline.SetStepped(frameIndex);
|
timeline.SetStepped(frameIndex);
|
||||||
else {
|
else {
|
||||||
var curve = curveObject as List<Object>;
|
timeline.SetCurve(frameIndex, (float)curveObject, GetFloat(valueMap, "c2", 0), GetFloat(valueMap, "c3", 1), GetFloat(valueMap, "c4", 1));
|
||||||
if (curve != null)
|
|
||||||
timeline.SetCurve(frameIndex, (float)curveObject, GetFloat(valueMap, "c2", 0), GetFloat(valueMap, "c3", 1), GetFloat(valueMap, "c4", 1));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user