diff options
author | kobewi <kobewi4e@gmail.com> | 2022-07-29 11:57:44 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-07-29 12:09:03 +0200 |
commit | ee6fd704b5373c6f430a1f1f3a08505e0418b0c4 (patch) | |
tree | 3024fb3d1c19aa768d8df124754e0458ec8044b2 /core | |
parent | def0122b79a9f135d81b4cc79a1b5768693381f8 (diff) |
Fix Vector4 serialization
Diffstat (limited to 'core')
-rw-r--r-- | core/variant/variant_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant/variant_parser.cpp b/core/variant/variant_parser.cpp index 1df5fa969e..34653310b1 100644 --- a/core/variant/variant_parser.cpp +++ b/core/variant/variant_parser.cpp @@ -1575,11 +1575,11 @@ Error VariantWriter::write(const Variant &p_variant, StoreStringFunc p_store_str } break; case Variant::VECTOR4: { Vector4 v = p_variant; - p_store_string_func(p_store_string_ud, "Vector4(" + rtos_fix(v.x) + ", " + rtos_fix(v.y) + ", " + rtos_fix(v.z) + ")"); + p_store_string_func(p_store_string_ud, "Vector4(" + rtos_fix(v.x) + ", " + rtos_fix(v.y) + ", " + rtos_fix(v.z) + ", " + rtos_fix(v.w) + ")"); } break; case Variant::VECTOR4I: { Vector4i v = p_variant; - p_store_string_func(p_store_string_ud, "Vector4i(" + itos(v.x) + ", " + itos(v.y) + ", " + itos(v.z) + ")"); + p_store_string_func(p_store_string_ud, "Vector4i(" + itos(v.x) + ", " + itos(v.y) + ", " + itos(v.z) + ", " + itos(v.w) + ")"); } break; case Variant::PLANE: { Plane p = p_variant; |