Shader/LangWrite: Fix code generation with methods

This commit is contained in:
Jérôme Leclercq 2021-06-20 14:08:56 +02:00
parent dae8f328ad
commit e896695179
1 changed files with 4 additions and 1 deletions

View File

@ -787,11 +787,14 @@ namespace Nz
}
Append("(");
bool first = true;
for (std::size_t i = (method) ? 1 : 0; i < node.parameters.size(); ++i)
{
if (i != 0)
if (!first)
Append(", ");
first = false;
node.parameters[i]->Visit(*this);
}
Append(")");