From 14cea66f23139fc8792942869dbc9e784b182df0 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 8 Apr 2021 21:20:37 +0800 Subject: [PATCH] Fixes Node3D rotation in select mode on macOS (cherry picked from commit 879a290ed9484705894de33b77d343c3f991a3e0) --- editor/plugins/spatial_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index fbff0b5428d..15dd2e90bb1 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -1264,7 +1264,7 @@ void SpatialEditorViewport::_sinput(const Ref &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)