summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-14 11:25:55 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-14 11:25:55 +0100
commit45edf35f8325d6146762c559f1598c135981394a (patch)
tree1f0774e27e7934ff24e89a999c7d09716a39a978 /editor
parentb99bbcc4361d52b31521b99baef35fcd6abc12ff (diff)
parentadeef12b12a9852ec24fa06a145655524816145f (diff)
Merge pull request #69726 from xiongyaohua/tweak_curve
Handle corner cases for curve baking
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/path_3d_editor_plugin.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/editor/plugins/path_3d_editor_plugin.cpp b/editor/plugins/path_3d_editor_plugin.cpp
index 63ca78d6c0..7a9e50e482 100644
--- a/editor/plugins/path_3d_editor_plugin.cpp
+++ b/editor/plugins/path_3d_editor_plugin.cpp
@@ -274,13 +274,10 @@ void Path3DGizmo::redraw() {
// Fish Bone.
v3p.push_back(p1);
- v3p.push_back(p1 + (side - forward) * 0.06);
+ v3p.push_back(p1 + (side - forward + up * 0.3) * 0.06);
v3p.push_back(p1);
- v3p.push_back(p1 + (-side - forward) * 0.06);
-
- v3p.push_back(p1);
- v3p.push_back(p1 + up * 0.03);
+ v3p.push_back(p1 + (-side - forward + up * 0.3) * 0.06);
}
add_lines(v3p, path_material);