From 5ba93619fae4eedca092bd7e4551b9034d725ff4 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Tue, 30 Nov 2021 23:28:35 +0300 Subject: Allow using empty statements in the shader, added formatting warning --- tests/servers/test_shader_lang.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/servers') diff --git a/tests/servers/test_shader_lang.cpp b/tests/servers/test_shader_lang.cpp index 0591bf6adf..f4a32c6723 100644 --- a/tests/servers/test_shader_lang.cpp +++ b/tests/servers/test_shader_lang.cpp @@ -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; -- cgit v1.2.3