summaryrefslogtreecommitdiff
path: root/scene/resources/separation_ray_shape_2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/separation_ray_shape_2d.cpp')
-rw-r--r--scene/resources/separation_ray_shape_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/separation_ray_shape_2d.cpp b/scene/resources/separation_ray_shape_2d.cpp
index 0d6aee47d8..fea41061fd 100644
--- a/scene/resources/separation_ray_shape_2d.cpp
+++ b/scene/resources/separation_ray_shape_2d.cpp
@@ -57,7 +57,7 @@ void SeparationRayShape2D::draw(const RID &p_to_rid, const Color &p_color) {
Transform2D xf;
xf.rotate(target_position.angle());
- xf.translate(Vector2(no_line ? 0 : target_position.length() - arrow_size, 0));
+ xf.translate_local(Vector2(no_line ? 0 : target_position.length() - arrow_size, 0));
Vector<Vector2> pts = {
xf.xform(Vector2(arrow_size, 0)),