private static BlendShapeKey[] CreateKeys(IEnumerable <string> names)
 {
     return(names
            .Select(n =>
                    _presetKeys.ContainsKey(n)
                 ? _presetKeys[n]
                 : BlendShapeKey.CreateUnknown(n)
                    )
            .ToArray());
 }
Example #2
0
 private static BlendShapeKey CreateKey(string name) =>
 _presets.ContainsKey(name)
         ? BlendShapeKey.CreateFromPreset(_presets[name])
         : BlendShapeKey.CreateUnknown(name);