summaryrefslogtreecommitdiffstats
path: root/scene/2d/path_2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/2d/path_2d.cpp')
-rw-r--r--scene/2d/path_2d.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/scene/2d/path_2d.cpp b/scene/2d/path_2d.cpp
index ee0ccc42ff..282d14da5d 100644
--- a/scene/2d/path_2d.cpp
+++ b/scene/2d/path_2d.cpp
@@ -34,7 +34,7 @@
#include "scene/main/timer.h"
#ifdef TOOLS_ENABLED
-#include "editor/editor_scale.h"
+#include "editor/themes/editor_scale.h"
#endif
#ifdef TOOLS_ENABLED
@@ -146,8 +146,8 @@ void Path2D::_notification(int p_what) {
for (int i = 0; i < sample_count; i++) {
const Vector2 p = r[i].get_origin();
- const Vector2 side = r[i].columns[0];
- const Vector2 forward = r[i].columns[1];
+ const Vector2 side = r[i].columns[1];
+ const Vector2 forward = r[i].columns[0];
// Fish Bone.
w[0] = p + (side - forward) * 5;
@@ -232,8 +232,8 @@ void PathFollow2D::_update_transform() {
if (rotates) {
Transform2D xform = c->sample_baked_with_rotation(progress, cubic);
- xform.translate_local(v_offset, h_offset);
- set_rotation(xform[1].angle());
+ xform.translate_local(h_offset, v_offset);
+ set_rotation(xform[0].angle());
set_position(xform[2]);
} else {
Vector2 pos = c->sample_baked(progress, cubic);