Merge pull request #90098 from viksl/fix-instant-rotation-and-return-wrapping

Allow wrapping for begin rotate transformation to bring it in line with Blender.
This commit is contained in:
Rémi Verschelde 2024-06-17 10:57:57 +02:00
commit bb8fe430fe
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 5 deletions

View File

@ -1639,11 +1639,7 @@ void Node3DEditorViewport::input(const Ref<InputEvent> &p_event) {
Ref<InputEventMouseMotion> 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);
}
}