diff --git a/scene/animation/animation_blend_tree.cpp b/scene/animation/animation_blend_tree.cpp index 6a76b5ac168..89ec9ad52e3 100644 --- a/scene/animation/animation_blend_tree.cpp +++ b/scene/animation/animation_blend_tree.cpp @@ -1178,8 +1178,6 @@ void AnimationNodeBlendTree::get_child_nodes(List *r_child_nodes) { ns.push_back(E.key); } - ns.sort_custom(); - for (int i = 0; i < ns.size(); i++) { ChildNode cn; cn.name = ns[i]; @@ -1435,7 +1433,6 @@ void AnimationNodeBlendTree::_get_property_list(List *p_list) cons for (const KeyValue &E : nodes) { names.push_back(E.key); } - names.sort_custom(); for (const StringName &E : names) { String prop_name = E; diff --git a/scene/animation/animation_blend_tree.h b/scene/animation/animation_blend_tree.h index 2139af8a968..bf95c211f6d 100644 --- a/scene/animation/animation_blend_tree.h +++ b/scene/animation/animation_blend_tree.h @@ -388,7 +388,7 @@ class AnimationNodeBlendTree : public AnimationRootNode { Vector connections; }; - HashMap nodes; + RBMap nodes; Vector2 graph_offset;