diff options
| author | Clay John <claynjohn@gmail.com> | 2022-04-23 18:45:02 -0700 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-23 18:45:02 -0700 | 
| commit | 187daffbfc80e70f1cf7d6a14e770975da1777bf (patch) | |
| tree | 60add24e6f28164de6d60c8d3efa1c33bc6002a0 | |
| parent | 7d6f87899ed3a1dc250101a3560a0898f15d8a56 (diff) | |
| parent | dd90a34e8ab7aa62e66c2db52d56749e6391dcdd (diff) | |
Merge pull request #60336 from TokageItLab/fix-root-motion-rotation-init
Fixed wrong init value of root motion rotation
| -rw-r--r-- | scene/animation/animation_tree.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index 0996eb9f9f..f5236adbad 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -999,7 +999,7 @@ void AnimationTree::_process_graph(double p_delta) {  							if (t->process_pass != process_pass) {  								t->process_pass = process_pass;  								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);  							}  							double prev_time = time - delta; @@ -1095,7 +1095,7 @@ void AnimationTree::_process_graph(double p_delta) {  							if (t->process_pass != process_pass) {  								t->process_pass = process_pass;  								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);  							}  							double prev_time = time - delta; @@ -1191,7 +1191,7 @@ void AnimationTree::_process_graph(double p_delta) {  							if (t->process_pass != process_pass) {  								t->process_pass = process_pass;  								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);  							}  							double prev_time = time - delta;  |