parent
afe45f9796
commit
dbda5b6700
|
@ -891,7 +891,7 @@ void AnimationTree::_process_graph(float p_delta) {
|
||||||
t->loc = Vector3();
|
t->loc = Vector3();
|
||||||
t->rot = Quat();
|
t->rot = Quat();
|
||||||
t->rot_blend_accum = 0;
|
t->rot_blend_accum = 0;
|
||||||
t->scale = Vector3();
|
t->scale = Vector3(1, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
float prev_time = time - delta;
|
float prev_time = time - delta;
|
||||||
|
@ -952,11 +952,9 @@ void AnimationTree::_process_graph(float p_delta) {
|
||||||
t->loc = loc;
|
t->loc = loc;
|
||||||
t->rot = rot;
|
t->rot = rot;
|
||||||
t->rot_blend_accum = 0;
|
t->rot_blend_accum = 0;
|
||||||
t->scale = Vector3();
|
t->scale = scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
scale -= Vector3(1.0, 1.0, 1.0); //helps make it work properly with Add nodes
|
|
||||||
|
|
||||||
if (err != OK)
|
if (err != OK)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -1241,8 +1239,6 @@ void AnimationTree::_process_graph(float p_delta) {
|
||||||
Transform xform;
|
Transform xform;
|
||||||
xform.origin = t->loc;
|
xform.origin = t->loc;
|
||||||
|
|
||||||
t->scale += Vector3(1.0, 1.0, 1.0); //helps make it work properly with Add nodes and root motion
|
|
||||||
|
|
||||||
xform.basis.set_quat_scale(t->rot, t->scale);
|
xform.basis.set_quat_scale(t->rot, t->scale);
|
||||||
|
|
||||||
if (t->root_motion) {
|
if (t->root_motion) {
|
||||||
|
@ -1276,7 +1272,8 @@ void AnimationTree::_process_graph(float p_delta) {
|
||||||
t->object->set_indexed(t->subpath, t->value);
|
t->object->set_indexed(t->subpath, t->value);
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
default: {} //the rest don't matter
|
default: {
|
||||||
|
} //the rest don't matter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue