### Godot version

4.0.beta10

### System information

Nobara Linux

### Issue description

after updating my project [Advanced-Movement-System-Godot](https://github.com/ywmaa/Advanced-Movement-System-Godot) to Godot 4 beta 10 state machines are broken ( I usually fix stuff every beta but this time I couldn't) 
at first I made a condition in the advance_condition and changed it through code : set("parameter",value)

but currently after I think a pull request is merged I think this one : https://github.com/godotengine/godot/pull/65312

having the condition mode set to Enabled or Auto doesn't advance/travel the animation. 

### Steps to reproduce

make a state machine in an AnimTree and make a condition in the travel between two animation nodes in the state machine.

### Minimal reproduction project

https://github.com/ywmaa/Advanced-Movement-System-Godot
}
			
			if (p_state_machine->start_node == current && p_state_machine->transitions[i].local_from == current) {
				if (p_state_machine->prev_state_machine != nullptr) {
					Ref<AnimationNodeStateMachinePlayback> prev_playback = p_state_machine->prev_state_machine->get_parameter(p_state_machine->playback);
					if (prev_playback.is_valid()) {
						StringName prev_local_to = String(prev_playback->current_transition.next).replace_first(String(p_state_machine->state_machine_name) + "/", "");
						if (p_state_machine->transitions[i].to == prev_local_to) {
							auto_advance_to = i;
							prev_playback->current_transition.next = StringName();
							break;
						}
					}
				}
			}
			if (p_state_machine->transitions[i].from == current && _check_advance_condition(p_state_machine, p_state_machine->transitions[i].transition)) {
				if (p_state_machine->transitions[i].transition->get_priority() <= priority_best) {
					priority_best = p_state_machine->transitions[i].transition->get_priority();
					auto_advance_to = i;
				}
			}
		}
		if (auto_advance_to != -1) {
			next = p_state_machine->transitions[auto_advance_to].local_to;
			Transition tr;
			tr.from = String(p_state_machine->state_machine_name) + "/" + String(p_state_machine->transitions[auto_advance_to].from);
			tr.to = String(p_state_machine->transitions[auto_advance_to].to).replace_first("../", "");
			tr.next = p_state_machine->transitions[auto_advance_to].to;
			current_transition = tr;
			current_curve = p_state_machine->transitions[auto_advance_to].transition->get_xfade_curve();