diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-27 13:34:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-27 13:34:10 +0200 |
commit | 0f7b7bcbce32bca96a0d9fe08a2335cce81fae2a (patch) | |
tree | b27c3d453776e9836ab8d283975b2a56ea6ea632 /editor | |
parent | 1777d8008e5d6c4d4192f9bcede12e70e12daf55 (diff) | |
parent | 75dc0d18692ea2fc645ed4cb26fd63c4f799acf2 (diff) |
Merge pull request #50836 from Calinou/3d-editor-camera-preview-add-shortcut
Add shortcut to toggle the 3D editor's camera preview
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index f9d1de86c0..3b9c0ff699 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -4261,6 +4261,7 @@ Node3DEditorViewport::Node3DEditorViewport(Node3DEditor *p_spatial_editor, Edito preview_camera = memnew(CheckBox); preview_camera->set_text(TTR("Preview")); + preview_camera->set_shortcut(ED_SHORTCUT("spatial_editor/toggle_camera_preview", TTR("Toggle Camera Preview"), KEY_MASK_CMD | KEY_P)); vbox->add_child(preview_camera); preview_camera->set_h_size_flags(0); preview_camera->hide(); |