### Godot version

4.0.dev(0810ecaafdbee3ea747219e6ab3a8de5d2216a09)

### System information

any

### Issue description

https://user-images.githubusercontent.com/61938263/215898051-8506b45e-a9d4-4c3f-b1b3-28f202dea67b.mp4



### Steps to reproduce

Editt AnimationBlendTree

### Minimal reproduction project

N/A
if (!arranging_graph) {
		arranging_graph = true;
	} else {
		return;
	}
	Dictionary node_names;
	HashSet<StringName> selected_nodes;
	bool arrange_entire_graph = true;
	for (int i = get_child_count() - 1; i >= 0; i--) {
		GraphNode *gn = Object::cast_to<GraphNode>(get_child(i));
		if (!gn) {
			continue;
		}
		node_names[gn->get_name()] = gn;