mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-02-02 11:42:57 +08:00
Workaround Merge Armature breaking parent PBs
The Merge Armature logic is in need of an overall rewrite, but this works around issues where added (duplicate) bones break PBs in parents, by adding these to parent PB ignore lists.
This commit is contained in:
parent
1a114b65fe
commit
df8d0d7981
@ -327,6 +327,9 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
transformPath = RuntimeUtil.AvatarRootPath(newParent),
|
transformPath = RuntimeUtil.AvatarRootPath(newParent),
|
||||||
path = srcPath
|
path = srcPath
|
||||||
});
|
});
|
||||||
|
// The new merged leaf (if it's retained below) can break parent bone physbones. Add a PB Blocker
|
||||||
|
// to prevent this becoming an issue.
|
||||||
|
mergedSrcBone.GetOrAddComponent<ModularAvatarPBBlocker>();
|
||||||
}
|
}
|
||||||
|
|
||||||
BoneRemappings[src.transform] = mergedSrcBone.transform;
|
BoneRemappings[src.transform] = mergedSrcBone.transform;
|
||||||
|
Loading…
Reference in New Issue
Block a user