fixed init value in root motion rotation

This commit is contained in:
Silc 'Tokage' Renew 2022-04-18 14:04:49 +09:00
parent 690fefe43e
commit dd90a34e8a

View File

@ -999,7 +999,7 @@ void AnimationTree::_process_graph(double p_delta) {
if (t->process_pass != process_pass) { if (t->process_pass != process_pass) {
t->process_pass = process_pass; t->process_pass = process_pass;
t->loc = Vector3(0, 0, 0); t->loc = Vector3(0, 0, 0);
t->rot = Quaternion(0, 0, 0, 0); t->rot = Quaternion(0, 0, 0, 1);
t->scale = Vector3(0, 0, 0); t->scale = Vector3(0, 0, 0);
} }
double prev_time = time - delta; double prev_time = time - delta;
@ -1095,7 +1095,7 @@ void AnimationTree::_process_graph(double p_delta) {
if (t->process_pass != process_pass) { if (t->process_pass != process_pass) {
t->process_pass = process_pass; t->process_pass = process_pass;
t->loc = Vector3(0, 0, 0); t->loc = Vector3(0, 0, 0);
t->rot = Quaternion(0, 0, 0, 0); t->rot = Quaternion(0, 0, 0, 1);
t->scale = Vector3(0, 0, 0); t->scale = Vector3(0, 0, 0);
} }
double prev_time = time - delta; double prev_time = time - delta;
@ -1191,7 +1191,7 @@ void AnimationTree::_process_graph(double p_delta) {
if (t->process_pass != process_pass) { if (t->process_pass != process_pass) {
t->process_pass = process_pass; t->process_pass = process_pass;
t->loc = Vector3(0, 0, 0); t->loc = Vector3(0, 0, 0);
t->rot = Quaternion(0, 0, 0, 0); t->rot = Quaternion(0, 0, 0, 1);
t->scale = Vector3(0, 0, 0); t->scale = Vector3(0, 0, 0);
} }
double prev_time = time - delta; double prev_time = time - delta;