diff options
| author | Juan Linietsky | 2015-11-19 10:41:20 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-11-19 10:41:20 -0300 |
| commit | d3eb9e8c54d4a93b2bed90a5988f9814377d409f (patch) | |
| tree | a8586037e25eb481fb386745bbcd9a63ced46898 /tools/editor/spatial_editor_gizmos.cpp | |
| parent | 36d620c633be55ac402892bce816d4a9b4d67bee (diff) | |
| download | godot-d3eb9e8c54d4a93b2bed90a5988f9814377d409f.tar.gz godot-d3eb9e8c54d4a93b2bed90a5988f9814377d409f.tar.zst godot-d3eb9e8c54d4a93b2bed90a5988f9814377d409f.zip | |
-remove Vector2.atan2() replaced by Vector2.angle(), fixes #2260
Diffstat (limited to 'tools/editor/spatial_editor_gizmos.cpp')
| -rw-r--r-- | tools/editor/spatial_editor_gizmos.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/spatial_editor_gizmos.cpp b/tools/editor/spatial_editor_gizmos.cpp index 4dc9c4f43..5efca44c7 100644 --- a/tools/editor/spatial_editor_gizmos.cpp +++ b/tools/editor/spatial_editor_gizmos.cpp @@ -745,7 +745,7 @@ static float _find_closest_angle_to_half_pi_arc(const Vector3& p_from, const Vec } //min_p = p_arc_xform.affine_inverse().xform(min_p); - float a = Vector2(min_p.x,-min_p.z).atan2(); + float a = Vector2(min_p.x,-min_p.z).angle(); return a*180.0/Math_PI; } |
