You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-30 16:26:50 +00:00
Merge pull request #100324 from YYF233333/codestyle
Remove dead code in `AnimationNodeStateMachine`
This commit is contained in:
@@ -1579,16 +1579,8 @@ void AnimationNodeStateMachine::remove_transition(const StringName &p_from, cons
|
|||||||
|
|
||||||
void AnimationNodeStateMachine::remove_transition_by_index(const int p_transition) {
|
void AnimationNodeStateMachine::remove_transition_by_index(const int p_transition) {
|
||||||
ERR_FAIL_INDEX(p_transition, transitions.size());
|
ERR_FAIL_INDEX(p_transition, transitions.size());
|
||||||
Transition tr = transitions[p_transition];
|
|
||||||
transitions.write[p_transition].transition->disconnect("advance_condition_changed", callable_mp(this, &AnimationNodeStateMachine::_tree_changed));
|
transitions.write[p_transition].transition->disconnect("advance_condition_changed", callable_mp(this, &AnimationNodeStateMachine::_tree_changed));
|
||||||
transitions.remove_at(p_transition);
|
transitions.remove_at(p_transition);
|
||||||
|
|
||||||
Vector<String> path_from = String(tr.from).split("/");
|
|
||||||
Vector<String> path_to = String(tr.to).split("/");
|
|
||||||
|
|
||||||
List<Vector<String>> paths;
|
|
||||||
paths.push_back(path_from);
|
|
||||||
paths.push_back(path_to);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimationNodeStateMachine::_remove_transition(const Ref<AnimationNodeStateMachineTransition> p_transition) {
|
void AnimationNodeStateMachine::_remove_transition(const Ref<AnimationNodeStateMachineTransition> p_transition) {
|
||||||
|
|||||||
Reference in New Issue
Block a user