diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-18 00:54:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 00:54:37 +0200 |
commit | 2da6641e3d45bcd878bf13eac0cb3a32b7ce4d80 (patch) | |
tree | ce669b84a54a899747205ae1df818eea7157e07f /core | |
parent | 819aa47feeefe76bf1cb2e179765bf35ee5d3dda (diff) | |
parent | e5d85ac7513dcb8d69b32f1b588e1d8bef900278 (diff) |
Merge pull request #51812 from aaronfranke/test-variant-geom
Fixes to tests for Variant and Geometry3D
Diffstat (limited to 'core')
-rw-r--r-- | core/variant/variant_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/variant_parser.cpp b/core/variant/variant_parser.cpp index 50c48fd386..a214a238a6 100644 --- a/core/variant/variant_parser.cpp +++ b/core/variant/variant_parser.cpp @@ -1423,7 +1423,7 @@ Error VariantWriter::write(const Variant &p_variant, StoreStringFunc p_store_str p_store_string_func(p_store_string_ud, itos(p_variant.operator int64_t())); } break; case Variant::FLOAT: { - String s = rtosfix(p_variant.operator real_t()); + String s = rtosfix(p_variant.operator double()); if (s != "inf" && s != "nan") { if (s.find(".") == -1 && s.find("e") == -1) { s += ".0"; |