Fixed scene tree bug when scripts are disabled
This commit is contained in:
parent
b7cf4c2050
commit
f707266b52
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue