Fix shader language float literal precision truncation

(cherry picked from commit 356297f909)
This commit is contained in:
bitsawer 2023-07-03 12:48:33 +03:00 committed by Yuri Sizov
parent a0366f1cea
commit 0dec3d6485
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";
}