Shader: Fix LangWriter not outputting const if

This commit is contained in:
Jérôme Leclercq 2022-03-06 17:25:31 +01:00
parent a4858d6793
commit 53157875b9
1 changed files with 6 additions and 1 deletions

View File

@ -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 (");