Fixes Node3D rotation in select mode on macOS

(cherry picked from commit 879a290ed9)
This commit is contained in:
Haoyu Qiu 2021-04-08 21:20:37 +08:00 committed by Rémi Verschelde
parent 9a7e537aac
commit 14cea66f23
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1264,7 +1264,7 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
clicked = 0;
clicked_includes_current = false;
if ((spatial_editor->get_tool_mode() == SpatialEditor::TOOL_MODE_SELECT && b->get_control()) || spatial_editor->get_tool_mode() == SpatialEditor::TOOL_MODE_ROTATE) {
if ((spatial_editor->get_tool_mode() == SpatialEditor::TOOL_MODE_SELECT && b->get_command()) || spatial_editor->get_tool_mode() == SpatialEditor::TOOL_MODE_ROTATE) {
/* HANDLE ROTATION */
if (get_selected_count() == 0)