Fix crash caused by conflicting menu option IDs
This commit is contained in:
parent
923ef2b46a
commit
c6fec68a3e
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue