mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +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)
|
||||
timeline.SetStepped(frameIndex);
|
||||
else {
|
||||
var curve = curveObject as List<Object>;
|
||||
if (curve != null)
|
||||
timeline.SetCurve(frameIndex, (float)curveObject, GetFloat(valueMap, "c2", 0), GetFloat(valueMap, "c3", 1), GetFloat(valueMap, "c4", 1));
|
||||
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