diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-07-28 10:03:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-28 10:03:07 +0200 |
| commit | 199ea349f5d6e561150c38480146d486ceae5ca0 (patch) | |
| tree | f6fe9323b3d9535c56778beb7c4791124fa206a8 /scene/resources/separation_ray_shape_2d.cpp | |
| parent | 72e9122514bafb2237dfed0815ffccadc97b10d0 (diff) | |
| parent | 2bf9e6090c6d121bc1fddf4d82319a524ad0d963 (diff) | |
Merge pull request #57698 from bluenote10/feature/rename_translated_to_translated_local
Diffstat (limited to 'scene/resources/separation_ray_shape_2d.cpp')
| -rw-r--r-- | scene/resources/separation_ray_shape_2d.cpp | 2 |
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)), |