summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-04-16 11:50:18 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-04-16 11:50:18 +0200
commitbf0f9141409fd5f754c2b4e8dea0e5ea6f156896 (patch)
tree6d6172e6280beb9a2e8e2175433dffe78169c2e8
parent37f84c47aa30cded43c3409bd9e4de06d926f937 (diff)
parentbc5ee6c98fa77cc75e1654d2f3b5044f075688b7 (diff)
Merge pull request #4325 from SaracenOne/bone_attachment_reposition
BoneAttachments now position themselves instantly during bind.
-rw-r--r--scene/3d/bone_attachment.cpp1
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;
}
}