1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Allow using empty statements in the shader, added formatting warning

This commit is contained in:
Yuri Roubinsky
2021-11-30 23:28:35 +03:00
parent e223a9c129
commit 5ba93619fa
7 changed files with 31 additions and 3 deletions

View File

@@ -1318,6 +1318,9 @@ String ShaderCompilerRD::_dump_node_code(const SL::Node *p_node, int p_level, Ge
code += ")";
} break;
case SL::OP_EMPTY: {
// Semicolon (or empty statement) - ignored.
} break;
default: {
if (p_use_scope) {