Style: Apply clang-format to animation_tree.cpp
Fixes issues introduced inc633b77
andde1ff22
.
This commit is contained in:
parent
de1ff22eae
commit
be9731459a
1 changed files with 14 additions and 23 deletions
|
@ -258,12 +258,10 @@ void AnimationNode::remove_input(int p_index) {
|
|||
emit_changed();
|
||||
}
|
||||
|
||||
|
||||
void AnimationNode::_set_parent(Object *p_parent) {
|
||||
set_parent(Object::cast_to<AnimationNode>(p_parent));
|
||||
}
|
||||
|
||||
|
||||
void AnimationNode::set_parent(AnimationNode *p_parent) {
|
||||
parent = p_parent; //do not use ref because parent contains children
|
||||
if (get_script_instance()) {
|
||||
|
@ -735,7 +733,6 @@ void AnimationTree::_process_graph(float p_delta) {
|
|||
|
||||
{ //setup
|
||||
|
||||
|
||||
process_pass++;
|
||||
|
||||
state.valid = true;
|
||||
|
@ -780,7 +777,6 @@ void AnimationTree::_process_graph(float p_delta) {
|
|||
|
||||
const AnimationNode::AnimationState &as = E->get();
|
||||
|
||||
|
||||
Ref<Animation> a = as.animation;
|
||||
float time = as.time;
|
||||
float delta = as.delta;
|
||||
|
@ -866,8 +862,6 @@ void AnimationTree::_process_graph(float p_delta) {
|
|||
|
||||
prev_time = 0;
|
||||
|
||||
|
||||
|
||||
} else {
|
||||
Vector3 loc;
|
||||
Quat rot;
|
||||
|
@ -1265,7 +1259,6 @@ NodePath AnimationTree::get_root_motion_track() const {
|
|||
return root_motion_track;
|
||||
}
|
||||
|
||||
|
||||
Transform AnimationTree::get_root_motion_transform() const {
|
||||
return root_motion_transform;
|
||||
}
|
||||
|
@ -1294,8 +1287,6 @@ void AnimationTree::_bind_methods() {
|
|||
ADD_PROPERTY(PropertyInfo(Variant::INT, "process_mode", PROPERTY_HINT_ENUM, "Physics,Idle"), "set_process_mode", "get_process_mode");
|
||||
ADD_GROUP("Root Motion", "root_motion_");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::NODE_PATH, "root_motion_track"), "set_root_motion_track", "get_root_motion_track");
|
||||
|
||||
|
||||
}
|
||||
|
||||
AnimationTree::AnimationTree() {
|
||||
|
|
Loading…
Reference in a new issue