浏览代码

Merge pull request #110068 from ktxyz/fix-editor3d-snap-with-cmd-macos

fix: macOS cmd + drag snapping not working for 3D editor Move, Rotate and Scale tool
Thaddeus Crews 2 周之前
父节点
当前提交
f851db1429
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/scene/3d/node_3d_editor_plugin.cpp

+ 1 - 1
editor/scene/3d/node_3d_editor_plugin.cpp

@@ -8385,7 +8385,7 @@ void Node3DEditor::shortcut_input(const Ref<InputEvent> &p_event) {
 		return;
 	}
 
-	snap_key_enabled = Input::get_singleton()->is_key_pressed(Key::CTRL);
+	snap_key_enabled = Input::get_singleton()->is_key_pressed(Key::CMD_OR_CTRL);
 }
 
 void Node3DEditor::_sun_environ_settings_pressed() {