1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Removes redundant code & fix documentation for VisualShaderNodeCustom

This commit is contained in:
Yuri Roubinsky
2020-09-06 12:09:15 +03:00
parent 1a5c518efc
commit de097b9327
2 changed files with 2 additions and 22 deletions

View File

@@ -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);