mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-24 13:29:01 +08:00
fix: scale adjuster's hidden bones don't block PBs (#653)
This commit is contained in:
parent
6b181f3f57
commit
2751c88fea
@ -18,6 +18,11 @@ namespace nadena.dev.modular_avatar.core
|
|||||||
{
|
{
|
||||||
if (this == null) return;
|
if (this == null) return;
|
||||||
|
|
||||||
|
if (GetComponent<ModularAvatarPBBlocker>() == null)
|
||||||
|
{
|
||||||
|
gameObject.AddComponent<ModularAvatarPBBlocker>();
|
||||||
|
}
|
||||||
|
|
||||||
gameObject.hideFlags = HideFlags.HideInHierarchy;
|
gameObject.hideFlags = HideFlags.HideInHierarchy;
|
||||||
|
|
||||||
var parentObject = transform.parent;
|
var parentObject = transform.parent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user