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