From 119e1a29373e71017d446331870957e735e31483 Mon Sep 17 00:00:00 2001 From: Anutrix Date: Fri, 30 Sep 2022 20:50:51 +0530 Subject: Fixed shader editor when no files are currently in shader list --- editor/plugins/shader_editor_plugin.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor/plugins/shader_editor_plugin.h') 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 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, -- cgit v1.2.3