Fix compilation issues with various C++ scripting cases

This commit is contained in:
Wojtek Figat
2023-02-13 16:05:14 +01:00
parent 46cfa01622
commit cb83de4769
2 changed files with 5 additions and 1 deletions

View File

@@ -2302,7 +2302,10 @@ namespace Flax.Build.Bindings
separator = true;
contents.Append(parameterInfo.Type).Append(' ').Append(parameterInfo.Name);
}
contents.Append(") override").AppendLine();
contents.Append(')');
if (functionInfo.IsConst)
contents.Append(" const");
contents.Append(" override").AppendLine();
contents.AppendLine(" {");
// TODO: try to use ScriptVTable for interfaces implementation in scripting to call proper function instead of manually check at runtime
if (functionInfo.Parameters.Count != 0)