diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2020-09-06 12:32:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 12:32:19 +0300 |
commit | ceed52493696dd7bc7559040ecb98b225fc0754c (patch) | |
tree | 513c549e94edde052c8acdf3a274a94f9e5201af /editor/plugins | |
parent | 1a5c518efc6fb3cd9cefc7ee37c1952994fb28b0 (diff) | |
parent | de097b93273944309054596c4183814b3ff39e88 (diff) |
Merge pull request #41804 from Chaosus/vs_improvements2
Removes redundant code & fix documentation for VisualShaderNodeCustom
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); |