Merge pull request #48518 from likeich/scene_dock_bug
Fixed cut/copy/paste visibility
This commit is contained in:
commit
a33a8f1e29
|
@ -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/cut_node"), TOOL_CUT);
|
||||||
menu->add_shortcut(ED_GET_SHORTCUT("scene_tree/copy_node"), TOOL_COPY);
|
menu->add_shortcut(ED_GET_SHORTCUT("scene_tree/copy_node"), TOOL_COPY);
|
||||||
if (selection.size() == 1 && !node_clipboard.is_empty()) {
|
if (selection.size() == 1 && !node_clipboard.is_empty()) {
|
||||||
menu->add_shortcut(ED_GET_SHORTCUT("scene_tree/paste_node"), TOOL_PASTE);
|
menu->add_shortcut(ED_GET_SHORTCUT("scene_tree/paste_node"), TOOL_PASTE);
|
||||||
}
|
}
|
||||||
menu->add_separator();
|
menu->add_separator();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (profile_allow_script_editing) {
|
||||||
bool add_separator = false;
|
bool add_separator = false;
|
||||||
|
|
||||||
if (full_selection.size() == 1) {
|
if (full_selection.size() == 1) {
|
||||||
|
|
Loading…
Reference in New Issue