Shader/LangWrite: Fix code generation with methods
This commit is contained in:
@@ -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(")");
|
||||
|
||||
Reference in New Issue
Block a user