Fix API_INJECT_CODE injecting duplicated code

This commit is contained in:
2023-07-25 20:48:51 +03:00
parent 543433440e
commit c2fffbcfdb

View File

@@ -2059,7 +2059,7 @@ namespace Flax.Build.Bindings
if (code.StartsWith("using"))
CSharpUsedNamespaces.Add(code.Substring(6));
else if (code.Length > 0)
contents.Append(injectCodeInfo.Code).AppendLine(";");
contents.Append(code).AppendLine(";");
}
}
else