Merge pull request #118265 from L3GiaBao/fix-boneattachment3d-throwing-!is_inside_tree()
Fix `BoneAttachment3D` throws `!is_inside_tree()`
This commit is contained in:
@@ -170,6 +170,9 @@ void BoneAttachment3D::_transform_changed() {
|
||||
|
||||
Transform3D our_trans = get_transform();
|
||||
if (use_external_skeleton) {
|
||||
if (!sk->is_inside_tree()) {
|
||||
return;
|
||||
}
|
||||
our_trans = sk->get_global_transform().affine_inverse() * get_global_transform();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user