Fix BoneAttachment3D signal connection
(cherry picked from commit 34574db5b9
)
This commit is contained in:
parent
efe99e5479
commit
27b0e5aebb
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue