Merge pull request #78972 from bitsawer/fix_shader_float_precision

Fix shader language float literal precision truncation
This commit is contained in:
Rémi Verschelde 2023-07-07 08:32:09 +02:00
commit b2ada1b690
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ static String _mkid(const String &p_id) {
}
static String f2sp0(float p_float) {
String num = rtoss(p_float);
String num = rtos(p_float);
if (!num.contains(".") && !num.contains("e")) {
num += ".0";
}