mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-14 22:50:08 -05:00
fix
This commit is contained in:
parent
613a783d1e
commit
85a3f0fe3a
|
|
@ -25,6 +25,7 @@ namespace UniGLTF
|
|||
public static T Parse(string name, bool ignoreCase)
|
||||
{
|
||||
var caches = ignoreCase ? _ignoreCaseValues : _values;
|
||||
|
||||
if (caches.TryGetValue(name, out var ignoreCaseValue))
|
||||
{
|
||||
return ignoreCaseValue;
|
||||
|
|
@ -32,7 +33,7 @@ namespace UniGLTF
|
|||
|
||||
if (Enum.TryParse<T>(name, ignoreCase, out var result))
|
||||
{
|
||||
_values.Add(name, result);
|
||||
caches.Add(name, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user