diff options
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/visual_shader_editor_plugin.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index f2354dc69f..30ae3dd4bb 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -183,26 +183,6 @@ bool VisualShaderEditor::_is_available(int p_mode) { default: break; } - - int temp_mode = 0; - - if (p_mode & TYPE_FLAGS_VERTEX) { - temp_mode |= 1; - } - - if (p_mode & TYPE_FLAGS_FRAGMENT) { - temp_mode |= 2; - } - - if (p_mode & TYPE_FLAGS_LIGHT) { - temp_mode |= 4; - } - - if (p_mode & TYPE_FLAGS_COMPUTE) { - temp_mode |= 8; - } - - p_mode = temp_mode; } return (p_mode == -1 || (p_mode & current_mode) != 0); |