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