mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-13 06:20:01 -05:00
Fix #694 Turkish "i" problem.
This commit is contained in:
@@ -117,7 +117,7 @@ namespace VRM
|
||||
var group = new glTF_VRM_BlendShapeGroup
|
||||
{
|
||||
name = clip.BlendShapeName,
|
||||
presetName = clip.Preset.ToString().ToLower(),
|
||||
presetName = clip.Preset.ToString().ToLowerInvariant(),
|
||||
isBinary = clip.IsBinary,
|
||||
binds = list,
|
||||
materialValues = materialList,
|
||||
|
||||
@@ -190,6 +190,16 @@ namespace VRM
|
||||
var json = model.ToJson();
|
||||
Assert.AreEqual(@"{""presetName"":""neutral"",""binds"":[],""materialValues"":[],""isBinary"":false}", json);
|
||||
Debug.Log(json);
|
||||
|
||||
// https://github.com/vrm-c/UniVRM/issues/694
|
||||
// Must pass even if this computer's locale was tr-TR.
|
||||
var model2 = new glTF_VRM_BlendShapeGroup()
|
||||
{
|
||||
presetName = "I",
|
||||
};
|
||||
var json2 = model2.ToJson();
|
||||
Assert.AreEqual(@"{""presetName"":""i"",""binds"":[],""materialValues"":[],""isBinary"":false}", json2);
|
||||
Debug.Log(json);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user