summaryrefslogtreecommitdiff
path: root/editor/plugins/shader_editor_plugin.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-03 09:20:38 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-03 09:20:38 +0200
commitf3e7f275c2a5b89e7dd21fbc5f3be45b46d2918d (patch)
tree765b82810d4967a27b9b6baac9625c9e9239ad11 /editor/plugins/shader_editor_plugin.h
parent88f70dfacded634b65146a1aa2c94c9a86520b7d (diff)
parent119e1a29373e71017d446331870957e735e31483 (diff)
Merge pull request #66668 from Anutrix/allow-open-files
Fixed shader editor not allowing open files when there is no files already open
Diffstat (limited to 'editor/plugins/shader_editor_plugin.h')
-rw-r--r--editor/plugins/shader_editor_plugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/shader_editor_plugin.h b/editor/plugins/shader_editor_plugin.h
index 5188639bfc..2162ee0a1c 100644
--- a/editor/plugins/shader_editor_plugin.h
+++ b/editor/plugins/shader_editor_plugin.h
@@ -219,6 +219,8 @@ class ShaderEditorPlugin : public EditorPlugin {
LocalVector<EditedShader> edited_shaders;
+ // Always valid operations come first in the enum, file-specific ones
+ // should go after FILE_SAVE which is used to build the menu accordingly.
enum {
FILE_NEW,
FILE_NEW_INCLUDE,