-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avatar 代入時に姿勢が変わる対策 #2208
avatar 代入時に姿勢が変わる対策 #2208
Conversation
#2207 merge 後に rebase します 🙏 |
むしろここが気になったんですが、現状の実装では Export 対象の GameObject に破壊的変更を加えるようにしたということですか?
出力操作をするとモデルが変更されるというのは、ユーザから見ると予想しづらい(困った)挙動だと思えます。 |
さすがにそれはなくて、元の GameObject 自体は不変で、コピーしたものを操作して出力しているか。
|
なるほど。ここでいう 以前は2回も GameObject を Duplicate していたんですねえ |
cf21e15
to
30f893f
Compare
うろ覚えですが、 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM、コメント追従だけ
@@ -45,7 +45,7 @@ public static void EnforceTPose(GameObject go) | |||
/// <param name="go">対象モデルのルート</param> | |||
/// <param name="forceTPose">強制的にT-Pose化するか</param> | |||
/// <returns>正規化済みのモデル</returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コメント更新が追い付いてないですね。
ついでに破壊的操作であることも書いておくといいのかも
報告が2つあります。
|
fixed #2201
としたときに元の値を維持する?挙動があります。
そのため 旧avatar と newAvatar で元になる姿勢が異なる(例えば正規化)場合に姿勢が壊れます。
対策として、 Destory(Animator) して作り直します。
v0.116
より前はヒエラルキーをコピーしていたため代入時の元の値を維持する挙動をたまたま回避できていたようです。v0.116
はコピーせずに同一のヒエラルキーで実行します。