Shader: Fix LangWriter not outputting const if
This commit is contained in:
parent
a4858d6793
commit
53157875b9
|
|
@ -684,7 +684,12 @@ namespace Nz
|
|||
bool first = true;
|
||||
for (const auto& statement : node.condStatements)
|
||||
{
|
||||
if (!first)
|
||||
if (first)
|
||||
{
|
||||
if (node.isConst)
|
||||
Append("const ");
|
||||
}
|
||||
else
|
||||
Append("else ");
|
||||
|
||||
Append("if (");
|
||||
|
|
|
|||
Loading…
Reference in New Issue