-
Notifications
You must be signed in to change notification settings - Fork 424
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
[export][springbone] bake 時に SpringBone と LookAt に反映する実装 #2468
Conversation
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.
コンフリクト修正おねがいします 🙇
e1fb3f6
to
56b3024
Compare
rebase しました 🙏 |
@@ -208,8 +208,11 @@ private static byte[] Export( | |||
|
|||
if (settings.PoseFreeze) | |||
{ | |||
// 正規化 | |||
VRMBoneNormalizer.Execute(target, settings.ForceTPose, settings.FreezeMeshUseCurrentBlendShapeWeight); | |||
using (var backup = new VrmGeometryBackup(target)) |
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.
using の最初に SpringBone 関連の world 位置を記録。
Dispose で復帰(正規化で変わっている可能性がある)。
// SkinnedMeshRenderer.sharedMesh と MeshFilter.sharedMesh を新しいMeshで置き換える | ||
BoneNormalizer.Replace(root, newMeshMap, m_settings.FreezeMeshKeepRotation); | ||
} | ||
using (var backup = new Vrm10GeometryBackup(root)) |
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.
using の最初に SpringBone 関連の world 位置を記録。
Dispose で復帰(正規化で変わっている可能性がある)
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 👍
freeze_pose 時に SpringBone と LookAtOffset を反映する機能を実装しました。
fixed #2426
fixed #2277
fixed #2368