diff options
| author | Saracen | 2016-04-15 11:28:07 +0100 |
|---|---|---|
| committer | Saracen | 2016-04-15 11:32:10 +0100 |
| commit | bc5ee6c98fa77cc75e1654d2f3b5044f075688b7 (patch) | |
| tree | 62b13951294f378f3e1f2975e17f865ca9ace7c7 /scene/3d/bone_attachment.cpp | |
| parent | 880f4abda44a42532abb6f15999a90bc85f6264a (diff) | |
| download | godot-bc5ee6c98fa77cc75e1654d2f3b5044f075688b7.tar.gz godot-bc5ee6c98fa77cc75e1654d2f3b5044f075688b7.tar.zst godot-bc5ee6c98fa77cc75e1654d2f3b5044f075688b7.zip | |
Diffstat (limited to 'scene/3d/bone_attachment.cpp')
| -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 1628ccc15..56b61d40e 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; } } |
