BoneAttachments now position themselves instantly during bind.
(cherry picked from commit bc5ee6c98f
)
This commit is contained in:
parent
5fac497aa2
commit
47c7b535d2
|
@ -80,6 +80,7 @@ void BoneAttachment::_check_bind() {
|
||||||
int idx = sk->find_bone(bone_name);
|
int idx = sk->find_bone(bone_name);
|
||||||
if (idx!=-1) {
|
if (idx!=-1) {
|
||||||
sk->bind_child_node_to_bone(idx,this);;
|
sk->bind_child_node_to_bone(idx,this);;
|
||||||
|
set_transform(sk->get_bone_global_pose(idx));
|
||||||
bound=true;
|
bound=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue