From c6fec68a3e62934f9eb89d49d8a0ae9c08c2fcbc Mon Sep 17 00:00:00 2001 From: kobewi Date: Wed, 22 Nov 2023 17:28:40 +0100 Subject: [PATCH] Fix crash caused by conflicting menu option IDs --- editor/editor_resource_picker.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/editor_resource_picker.h b/editor/editor_resource_picker.h index 0046354861a9..35703bcbeb64 100644 --- a/editor/editor_resource_picker.h +++ b/editor/editor_resource_picker.h @@ -146,8 +146,8 @@ class EditorScriptPicker : public EditorResourcePicker { GDCLASS(EditorScriptPicker, EditorResourcePicker); enum ExtraMenuOption { - OBJ_MENU_NEW_SCRIPT = 10, - OBJ_MENU_EXTEND_SCRIPT = 11 + OBJ_MENU_NEW_SCRIPT = 50, + OBJ_MENU_EXTEND_SCRIPT = 51 }; Node *script_owner = nullptr; @@ -169,7 +169,7 @@ class EditorShaderPicker : public EditorResourcePicker { GDCLASS(EditorShaderPicker, EditorResourcePicker); enum ExtraMenuOption { - OBJ_MENU_NEW_SHADER = 10, + OBJ_MENU_NEW_SHADER = 50, }; ShaderMaterial *edited_material = nullptr;