1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-26 15:46:23 +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

@@ -261,6 +261,8 @@ static String dump_node_code(SL::Node *p_node, int p_level) {
}
code += ")";
break;
case SL::OP_EMPTY:
break;
default: {
code = "(" + dump_node_code(onode->arguments[0], p_level) + _opstr(onode->op) + dump_node_code(onode->arguments[1], p_level) + ")";
break;