From df71600d2bc37055b7fec7474761a479515e6937 Mon Sep 17 00:00:00 2001 From: viksl <33526847+viksl@users.noreply.github.com> Date: Mon, 1 Apr 2024 15:13:13 +0200 Subject: [PATCH] Blender's rotation does allow wrapping the original implementation of this behaviour in Godot disabled it, this commit brings it in line with Blender's functionality. --- editor/plugins/node_3d_editor_plugin.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 468d7fb0516e..23442f8567a8 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -1603,11 +1603,7 @@ void Node3DEditorViewport::input(const Ref &p_event) { Ref m = p_event; if (m.is_valid()) { - if (_edit.mode == TRANSFORM_ROTATE) { - _edit.mouse_pos = m->get_position(); // rotate should not wrap - } else { - _edit.mouse_pos += _get_warped_mouse_motion(p_event); - } + _edit.mouse_pos += _get_warped_mouse_motion(p_event); update_transform(_get_key_modifier(m) == Key::SHIFT); } }