Merge pull request #4325 from SaracenOne/bone_attachment_reposition

BoneAttachments now position themselves instantly during bind.
This commit is contained in:
Rémi Verschelde 2016-04-16 11:50:18 +02:00
commit bf0f914140

View file

@ -80,6 +80,7 @@ void BoneAttachment::_check_bind() {
int idx = sk->find_bone(bone_name);
if (idx!=-1) {
sk->bind_child_node_to_bone(idx,this);;
set_transform(sk->get_bone_global_pose(idx));
bound=true;
}
}