summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-06 22:34:15 +0200
committerGitHub <noreply@github.com>2021-05-06 22:34:15 +0200
commita33a8f1e2919aa6c5793c52c74ca7fbf71a3aeba (patch)
tree4d49f2ee9d4da3b3f6bea74074e8c1c2a1ed375b
parentae2359fc1f2f5e7d5e5b45ce5d7b7346925e534f (diff)
parent10d5d4d3cd95a30d7196d07cac7dedeeda37a2db (diff)
Merge pull request #48518 from likeich/scene_dock_bug
Fixed cut/copy/paste visibility
-rw-r--r--editor/scene_tree_dock.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp
index 49c231de69..2a2960ed6f 100644
--- a/editor/scene_tree_dock.cpp
+++ b/editor/scene_tree_dock.cpp
@@ -2587,14 +2587,16 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) {
}
}
- if (profile_allow_script_editing) {
+ if (profile_allow_editing) {
menu->add_shortcut(ED_GET_SHORTCUT("scene_tree/cut_node"), TOOL_CUT);
menu->add_shortcut(ED_GET_SHORTCUT("scene_tree/copy_node"), TOOL_COPY);
if (selection.size() == 1 && !node_clipboard.is_empty()) {
menu->add_shortcut(ED_GET_SHORTCUT("scene_tree/paste_node"), TOOL_PASTE);
}
menu->add_separator();
+ }
+ if (profile_allow_script_editing) {
bool add_separator = false;
if (full_selection.size() == 1) {