diff options
author | Gio Aleman <pyrophones@gmail.com> | 2019-04-11 12:31:26 -0400 |
---|---|---|
committer | Gio Aleman <pyrophones@gmail.com> | 2019-04-12 11:44:45 -0400 |
commit | f707266b524ab5bd25050e17098fc5d4f0cd28cb (patch) | |
tree | f74c477cf92d25e01d54831aa299f3607db96d8d | |
parent | b7cf4c2050dfd51521522c874676e96d2e5c4762 (diff) |
Fixed scene tree bug when scripts are disabled
-rw-r--r-- | editor/scene_tree_dock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 752c1afff2..7bdcd68302 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -2215,10 +2215,10 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) { menu->add_icon_shortcut(get_icon("ScriptRemove", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/clear_script"), TOOL_CLEAR_SCRIPT); menu->add_icon_shortcut(get_icon("ScriptExtend", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/extend_script"), TOOL_ATTACH_SCRIPT); } + menu->add_separator(); } if (profile_allow_editing) { - menu->add_separator(); if (selection.size() == 1) { menu->add_icon_shortcut(get_icon("Rename", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/rename"), TOOL_RENAME); } |