esperecyan / VRMConverterForVRChat

https://pokemori.booth.pm/items/1025226
Mozilla Public License 2.0
184 stars 22 forks source link

VRChat向けモデルをVRMコンバートする際、表情アニメーションに同名シェイプキーに対するパラメータ変更が複数あると、変換に失敗する #39

Closed mew-ton closed 2 years ago

mew-ton commented 2 years ago

エラーログ

画像でごめんなさい。手元の環境では問題を解消してしまったため、再現状態に戻すのが手間でやれてないです。

image

発生時の状況

私の環境では以下のようなアニメーションを表情として使用していました。 後半部分のheadオブジェクトに対するアニメーションを削除したら再現しなくなりました。

image

C#については全く詳しくはないですが、

エラーログにある以下の文言と、

System.ArgumentException: An item with the same key has already been added. Key: f_point_R

発生元が

System.Collections.Generic.Dictionary.Add

であることから、表題の条件でエラーが発生すると推測されます。

esperecyan commented 2 years ago

ご報告有り難うございます。 https://github.com/esperecyan/VRMConverterForVRChat/issues/28#issuecomment-996770345 と同じエラーだと思うので再現できそうです。

mew-ton commented 2 years ago

はやい!確認ありがとうございます!!

esperecyan commented 2 years ago

「5000ポリNecoMaid」をVRM変換時に、表情へQuQu_RocknRollを指定すると再現。 https://sonovr.booth.pm/items/1843582

esperecyan commented 2 years ago

v38.0.2で対処しました。