summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-09-06 12:32:19 +0300
committerGitHub <noreply@github.com>2020-09-06 12:32:19 +0300
commitceed52493696dd7bc7559040ecb98b225fc0754c (patch)
tree513c549e94edde052c8acdf3a274a94f9e5201af /editor/plugins
parent1a5c518efc6fb3cd9cefc7ee37c1952994fb28b0 (diff)
parentde097b93273944309054596c4183814b3ff39e88 (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.cpp20
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);