mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-24 19:45:37 -05:00
fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user