Skip to content

Commit

Permalink
Merge pull request #85227 from KoBeWi/when_two_IDs_fight_the_editor_s…
Browse files Browse the repository at this point in the history
…uffers

Fix crash caused by conflicting menu option IDs
  • Loading branch information
akien-mga committed Nov 22, 2023
2 parents ee14dc6 + c6fec68 commit fa4a653
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/editor_resource_picker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit fa4a653

Please sign in to comment.