mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-28 05:43:37 -05:00
add null check
This commit is contained in:
@@ -45,9 +45,13 @@ namespace UniVRM10
|
||||
if (expressions?.Preset?.LookDown != null) yield return ExpressionKey.LookDown.SubAssetKey;
|
||||
if (expressions?.Preset?.LookLeft != null) yield return ExpressionKey.LookLeft.SubAssetKey;
|
||||
if (expressions?.Preset?.LookRight != null) yield return ExpressionKey.LookRight.SubAssetKey;
|
||||
foreach (var kv in expressions.Custom)
|
||||
|
||||
if (expressions.Custom != null)
|
||||
{
|
||||
yield return ExpressionKey.CreateCustom(kv.Key).SubAssetKey;
|
||||
foreach (var kv in expressions.Custom)
|
||||
{
|
||||
yield return ExpressionKey.CreateCustom(kv.Key).SubAssetKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user