mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fixed scene tree bug when scripts are disabled
This commit is contained in:
parent
b7cf4c2050
commit
f707266b52
@ -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 New Issue
Block a user