fix: NRE when Move Independently is placed on a scene root (#1321)

Closes: #1317
This commit is contained in:
bd_ 2024-10-27 10:07:14 -07:00 committed by GitHub
parent efa263b551
commit 1153abd16e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -218,6 +218,8 @@ namespace nadena.dev.modular_avatar.core.ArmatureAwase
return;
}
if (transform.parent == null) return;
var pos = transform.localPosition;
var rot = transform.localRotation;
var scale = transform.localScale;