diff options
author | Saracen <SaracenOne@gmail.com> | 2016-04-15 11:28:07 +0100 |
---|---|---|
committer | Saracen <SaracenOne@gmail.com> | 2016-04-15 11:32:10 +0100 |
commit | bc5ee6c98fa77cc75e1654d2f3b5044f075688b7 (patch) | |
tree | 62b13951294f378f3e1f2975e17f865ca9ace7c7 | |
parent | 880f4abda44a42532abb6f15999a90bc85f6264a (diff) |
BoneAttachments now position themselves instantly during bind.
-rw-r--r-- | scene/3d/bone_attachment.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/bone_attachment.cpp b/scene/3d/bone_attachment.cpp index 1628ccc15e..56b61d40e2 100644 --- a/scene/3d/bone_attachment.cpp +++ b/scene/3d/bone_attachment.cpp @@ -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; } } |