Fixed shader editor when no files are currently in shader list

This commit is contained in:
Anutrix 2022-09-30 20:50:51 +05:30
parent 166df0896c
commit 119e1a2937
2 changed files with 4 additions and 2 deletions

View file

@ -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,