From ea80213eee219e1553e8783f263915b3122b23f1 Mon Sep 17 00:00:00 2001 From: detomon Date: Mon, 5 Jun 2023 11:55:09 +0200 Subject: [PATCH] Fix adding bones with the same name after calling Skeleton3D.clear_bones() --- scene/3d/skeleton_3d.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/3d/skeleton_3d.cpp b/scene/3d/skeleton_3d.cpp index 32fe15f7441..ada1e66922b 100644 --- a/scene/3d/skeleton_3d.cpp +++ b/scene/3d/skeleton_3d.cpp @@ -548,6 +548,7 @@ bool Skeleton3D::is_show_rest_only() const { void Skeleton3D::clear_bones() { bones.clear(); + name_to_bone_index.clear(); process_order_dirty = true; version++; _make_dirty();