diff options
-rw-r--r-- | scene/animation/animation_blend_tree.cpp | 3 | ||||
-rw-r--r-- | scene/animation/animation_blend_tree.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/scene/animation/animation_blend_tree.cpp b/scene/animation/animation_blend_tree.cpp index 412017bc5a..3642f4e3e8 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<ChildNode> *r_child_nodes) { ns.push_back(E.key); } - ns.sort_custom<StringName::AlphCompare>(); - for (int i = 0; i < ns.size(); i++) { ChildNode cn; cn.name = ns[i]; @@ -1435,7 +1433,6 @@ void AnimationNodeBlendTree::_get_property_list(List<PropertyInfo> *p_list) cons for (const KeyValue<StringName, Node> &E : nodes) { names.push_back(E.key); } - names.sort_custom<StringName::AlphCompare>(); 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 2139af8a96..bf95c211f6 100644 --- a/scene/animation/animation_blend_tree.h +++ b/scene/animation/animation_blend_tree.h @@ -388,7 +388,7 @@ class AnimationNodeBlendTree : public AnimationRootNode { Vector<StringName> connections; }; - HashMap<StringName, Node> nodes; + RBMap<StringName, Node, StringName::AlphCompare> nodes; Vector2 graph_offset; |