You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Reimport bone attachment fixes:
Assign bone_idx to GLTF importer to fix serialization. Notifies Skeletons and BoneAttachments when reimporting. Removes usage of NOTIFICATION_NODE_RECACHE_REQUESTED
This commit is contained in:
@@ -349,6 +349,16 @@ void BoneAttachment3D::notify_skeleton_bones_renamed(Node *p_base_scene, Skeleto
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void BoneAttachment3D::notify_rebind_required() {
|
||||
// Ensures bindings are properly updated after a scene reload.
|
||||
_check_unbind();
|
||||
if (use_external_skeleton) {
|
||||
_update_external_skeleton_cache();
|
||||
}
|
||||
bone_idx = -1;
|
||||
_check_bind();
|
||||
}
|
||||
#endif // TOOLS_ENABLED
|
||||
|
||||
BoneAttachment3D::BoneAttachment3D() {
|
||||
|
||||
Reference in New Issue
Block a user