summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-05-24 10:52:46 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-05-24 10:52:46 +0200
commitc39c5653077eeda4d2c9b6e48a459b08e8c3b599 (patch)
treeb677750dd0aa72cb40f05859c1a1ea615fb871dc /editor
parent299f0ae3db6daf0e2f42d8849c970839595379c3 (diff)
parent42aa5398d951dc709c892ef9f7afef6a0cf5d9ca (diff)
downloadredot-engine-c39c5653077eeda4d2c9b6e48a459b08e8c3b599.tar.gz
Merge pull request #72842 from TokageItLab/fix-pathfollow
Fix Pathfollow direction and add Z forward option
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/path_3d_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/path_3d_editor_plugin.cpp b/editor/plugins/path_3d_editor_plugin.cpp
index 75cd04bee8..d49c04445e 100644
--- a/editor/plugins/path_3d_editor_plugin.cpp
+++ b/editor/plugins/path_3d_editor_plugin.cpp
@@ -274,10 +274,10 @@ void Path3DGizmo::redraw() {
// Fish Bone.
v3p.push_back(p1);
- v3p.push_back(p1 + (side - forward + up * 0.3) * 0.06);
+ v3p.push_back(p1 + (side + forward + up * 0.3) * 0.06);
v3p.push_back(p1);
- v3p.push_back(p1 + (-side - forward + up * 0.3) * 0.06);
+ v3p.push_back(p1 + (-side + forward + up * 0.3) * 0.06);
}
add_lines(v3p, path_material);