diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-03 09:20:38 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-03 09:20:38 +0200 |
commit | f3e7f275c2a5b89e7dd21fbc5f3be45b46d2918d (patch) | |
tree | 765b82810d4967a27b9b6baac9625c9e9239ad11 /editor/plugins/shader_editor_plugin.h | |
parent | 88f70dfacded634b65146a1aa2c94c9a86520b7d (diff) | |
parent | 119e1a29373e71017d446331870957e735e31483 (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.h | 2 |
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, |