summaryrefslogtreecommitdiffstats
path: root/scene/3d/bone_attachment_3d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/bone_attachment_3d.cpp')
-rw-r--r--scene/3d/bone_attachment_3d.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/scene/3d/bone_attachment_3d.cpp b/scene/3d/bone_attachment_3d.cpp
index 60fb6f87c9..45de9b907c 100644
--- a/scene/3d/bone_attachment_3d.cpp
+++ b/scene/3d/bone_attachment_3d.cpp
@@ -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() {