From 2c88a947c1395fb3c8952f2184b83c74c3532744 Mon Sep 17 00:00:00 2001 From: Igor Kordiukiewicz Date: Sun, 6 Mar 2022 03:19:03 +0100 Subject: [PATCH] Fixed issue where Extend Script option would show up even without script attached to the node (cherry picked from commit dc361d32014c3eab0b80a8422d1f850f854b7532) --- editor/editor_resource_picker.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/editor/editor_resource_picker.cpp b/editor/editor_resource_picker.cpp index 49aa7462844..432893f64c8 100644 --- a/editor/editor_resource_picker.cpp +++ b/editor/editor_resource_picker.cpp @@ -873,7 +873,12 @@ void EditorScriptPicker::set_create_options(Object *p_menu_node) { } menu_node->add_icon_item(get_icon("ScriptCreate", "EditorIcons"), TTR("New Script"), OBJ_MENU_NEW_SCRIPT); - menu_node->add_icon_item(get_icon("ScriptExtend", "EditorIcons"), TTR("Extend Script"), OBJ_MENU_EXTEND_SCRIPT); + if (script_owner) { + Ref