Fixed shader editor when no files are currently in shader list
This commit is contained in:
parent
166df0896c
commit
119e1a2937
2 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue