Fix vector type floats from .f to .0

This commit is contained in:
Chandler Cox
2024-08-06 17:37:04 -05:00
parent 08f286253c
commit 443bc347ef

View File

@@ -167,7 +167,7 @@ namespace Flax.Build.Bindings
foreach (var vectorType in CSharpVectorTypes)
{
if (value.Length > vectorType.Length + 4 && value.StartsWith(vectorType) && value[vectorType.Length] == '(')
return $"typeof({vectorType}), \"{value.Substring(vectorType.Length + 1, value.Length - vectorType.Length - 2).Replace(".f", "").Replace("f", "")}\"";
return $"typeof({vectorType}), \"{value.Substring(vectorType.Length + 1, value.Length - vectorType.Length - 2).Replace(".f", ".0").Replace("f", "")}\"";
}
return null;