diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-11-17 21:35:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 21:35:14 +0300 |
commit | cd4630fd4a7e5c6aeec103c34e381cd0cca76ca7 (patch) | |
tree | d98e86108ac0040753b5ec8ed17e99787bc8604f /scene/2d | |
parent | e445bacd90688e85d9720353b70814cdbf66e7db (diff) | |
parent | 8be89357ced8990e4c0a578441fcb6a19a582494 (diff) |
Merge pull request #55062 from Chaosus/fix_colorpicker_circle
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/navigation_region_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/navigation_region_2d.cpp b/scene/2d/navigation_region_2d.cpp index bdb6cda5af..204ed72878 100644 --- a/scene/2d/navigation_region_2d.cpp +++ b/scene/2d/navigation_region_2d.cpp @@ -464,7 +464,7 @@ void NavigationRegion2D::_notification(int p_what) { draw_line(a, b, doors_color); // Draw a circle to illustrate the margins. - real_t angle = b.angle_to_point(a); + real_t angle = a.angle_to_point(b); draw_arc(a, radius, angle + Math_PI / 2.0, angle - Math_PI / 2.0 + Math_TAU, 10, doors_color); draw_arc(b, radius, angle - Math_PI / 2.0, angle + Math_PI / 2.0, 10, doors_color); } |