Merge pull request #115871 from ryevdokimov/arc-line-snap

Fix transform gizmo rotation arc line not snapping with snap rotation
This commit is contained in:
Thaddeus Crews 2026-02-11 10:27:03 -06:00
commit e4d449f4b4
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -3890,7 +3890,7 @@ void Node3DEditorViewport::_draw() {
Math::round(2 * EDSCALE),
true);
Vector3 end_point_3d = _edit.center + gizmo_scale * rotation_radius * (right * Math::cos(_edit.accumulated_rotation_angle) + forward * Math::sin(_edit.accumulated_rotation_angle));
Vector3 end_point_3d = _edit.center + gizmo_scale * rotation_radius * (right * Math::cos(display_angle) + forward * Math::sin(display_angle));
Point2 end_point_2d = point_to_screen(end_point_3d);
RenderingServer::get_singleton()->canvas_item_add_line(
ci,