surprisedがToVrm0X→ToVrm10で相互変換されないので戻せるようにする #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ExpressionKeyConverter内、ExpressionKeyをToVrm0X→ToVrm10と相互変換した際に、Surprisedに関してはデータに差が出てしまい元に戻らなくなってしまう現象が確認されました。
これは内部的に
ExpressionKey.CreateCustom(key.Name) ≠ ExpressionKey.CreateFromPreset(ExpressionPreset.surprised)
であるためと思われます。
この為、Surprisedを動かしても動作しないという結果につながることがあります。
これを回避するために、surprisedというキーを持つものはToVrm10内の分岐でExpressionPreset.surprisedに戻してあげる必要があります。
surprisedという名前を持つカスタムアニメーションを参照していた場合、問題が出る可能性はありますが、surprisedがVRM1.0に通常Expressionとして項目が存在する以上、わざわざ同名で作るとは考えにくいので実質的に影響範囲は低いと思われます。
プルリクエストの修正内容は上記の修正変換をToVrm10に組み込んだものとなります。