|
21 | 21 | import me.winter.gdx.animation.math.Curve.CurveType; |
22 | 22 |
|
23 | 23 | import java.io.InputStream; |
| 24 | +import java.util.Locale; |
24 | 25 |
|
25 | 26 | /** |
26 | 27 | * File parser for .SCML files (spriter format) |
@@ -173,7 +174,7 @@ private void loadTimelines(Array<Element> xmlMainlineKeys, Array<Element> xmlTim |
173 | 174 | Array<Element> xmlObjectRefs = xmlElement.getChildrenByName("object_ref"); |
174 | 175 | Array<Element> xmlBoneRefs = xmlElement.getChildrenByName("bone_ref"); |
175 | 176 |
|
176 | | - Curve curve = new Curve(CurveType.valueOf(xmlElement.get("curve_type", "linear").toUpperCase())); |
| 177 | + Curve curve = new Curve(CurveType.valueOf(xmlElement.get("curve_type", "linear").toUpperCase(Locale.ENGLISH))); |
177 | 178 | curve.constraints.set(xmlElement.getFloat("c1", 0f), xmlElement.getFloat("c2", 0f), xmlElement.getFloat("c3", 0f), xmlElement.getFloat("c4", 0f)); |
178 | 179 |
|
179 | 180 | Array<ObjectRef> objectRefs = new Array<>(xmlBoneRefs.size + xmlObjectRefs.size); |
@@ -233,7 +234,7 @@ private Array<TimelineKey> loadTimelineKeys(Array<Element> keys) |
233 | 234 |
|
234 | 235 | for(Element xmlKey : keys) |
235 | 236 | { |
236 | | - Curve curve = new Curve(CurveType.valueOf(xmlKey.get("curve_type", "linear").toUpperCase())); |
| 237 | + Curve curve = new Curve(CurveType.valueOf(xmlKey.get("curve_type", "linear").toUpperCase(Locale.ENGLISH))); |
237 | 238 | curve.constraints.set(xmlKey.getFloat("c1", 0f), xmlKey.getFloat("c2", 0f), xmlKey.getFloat("c3", 0f), xmlKey.getFloat("c4", 0f)); |
238 | 239 |
|
239 | 240 | TimelineKey key = new TimelineKey(xmlKey.getInt("time", 0), xmlKey.getInt("spin", 1), curve); |
|
0 commit comments