Merge pull request #112897 from PixelDough/mono-fix-SplitFloats
Fix StringExtensions.SplitFloats incorrect float parsing
This commit is contained in:
@ -1539,7 +1539,7 @@ namespace Godot
|
|||||||
if (end < 0)
|
if (end < 0)
|
||||||
end = len;
|
end = len;
|
||||||
if (allowEmpty || end > from)
|
if (allowEmpty || end > from)
|
||||||
ret.Add(float.Parse(instance.AsSpan(from), CultureInfo.InvariantCulture));
|
ret.Add(float.Parse(instance.AsSpan(from, end - from), CultureInfo.InvariantCulture));
|
||||||
if (end == len)
|
if (end == len)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user