Fix BoneAttachment3D signal connection

(cherry picked from commit 34574db5b9)
This commit is contained in:
bitsawer 2023-09-15 17:35:12 +03:00 committed by Yuri Sizov
parent efe99e5479
commit 27b0e5aebb
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ void BoneAttachment3D::_check_bind() {
bone_idx = sk->find_bone(bone_name); bone_idx = sk->find_bone(bone_name);
} }
if (bone_idx != -1) { if (bone_idx != -1) {
sk->call_deferred(SNAME("connect"), "bone_pose_changed", callable_mp(this, &BoneAttachment3D::on_bone_pose_update)); sk->connect(SNAME("bone_pose_changed"), callable_mp(this, &BoneAttachment3D::on_bone_pose_update));
bound = true; bound = true;
call_deferred(SNAME("on_bone_pose_update"), bone_idx); call_deferred(SNAME("on_bone_pose_update"), bone_idx);
} }