You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Make AnimationNodeBlendTree use RBMap insteads HashMap
This commit is contained in:
@@ -1178,8 +1178,6 @@ void AnimationNodeBlendTree::get_child_nodes(List<ChildNode> *r_child_nodes) {
|
|||||||
ns.push_back(E.key);
|
ns.push_back(E.key);
|
||||||
}
|
}
|
||||||
|
|
||||||
ns.sort_custom<StringName::AlphCompare>();
|
|
||||||
|
|
||||||
for (int i = 0; i < ns.size(); i++) {
|
for (int i = 0; i < ns.size(); i++) {
|
||||||
ChildNode cn;
|
ChildNode cn;
|
||||||
cn.name = ns[i];
|
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) {
|
for (const KeyValue<StringName, Node> &E : nodes) {
|
||||||
names.push_back(E.key);
|
names.push_back(E.key);
|
||||||
}
|
}
|
||||||
names.sort_custom<StringName::AlphCompare>();
|
|
||||||
|
|
||||||
for (const StringName &E : names) {
|
for (const StringName &E : names) {
|
||||||
String prop_name = E;
|
String prop_name = E;
|
||||||
|
|||||||
@@ -388,7 +388,7 @@ class AnimationNodeBlendTree : public AnimationRootNode {
|
|||||||
Vector<StringName> connections;
|
Vector<StringName> connections;
|
||||||
};
|
};
|
||||||
|
|
||||||
HashMap<StringName, Node> nodes;
|
RBMap<StringName, Node, StringName::AlphCompare> nodes;
|
||||||
|
|
||||||
Vector2 graph_offset;
|
Vector2 graph_offset;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user