Merge pull request #81695 from bitsawer/fix_bone_attachment_signal

Fix BoneAttachment3D signal connection
This commit is contained in:
Rémi Verschelde
2023-09-26 08:21:45 +02:00
+1 -1
View File
@@ -148,7 +148,7 @@ void BoneAttachment3D::_check_bind() {
bone_idx = sk->find_bone(bone_name);
}
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;
call_deferred(SNAME("on_bone_pose_update"), bone_idx);
}