Explorar o código

BoneAttachments now position themselves instantly during bind.

Saracen %!s(int64=9) %!d(string=hai) anos
pai
achega
bc5ee6c98f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      scene/3d/bone_attachment.cpp

+ 1 - 0
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;
 		}
 	}