You've already forked godot
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user