diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-04 14:43:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-04 14:43:55 +0200 |
commit | 58ee66c52f686aa3c501c03f0368de3d1c4562b8 (patch) | |
tree | 46dcc1951b3572240c5cc0ae9ad3f1554e710e65 | |
parent | 5dc923d3863b504d64b19501eaec04749cd975ce (diff) | |
parent | 028d9fa2bd8300e1679e8739451e69273b120d9c (diff) |
Merge pull request #49304 from aaronfranke/tr3d-tr-compat-vp
Add "Transform" compatibility name for "Transform3D" in VariantParser
-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 8152b46226..62643e1d31 100644 --- a/core/variant/variant_parser.cpp +++ b/core/variant/variant_parser.cpp @@ -653,7 +653,7 @@ Error VariantParser::parse_value(Token &token, Variant &value, Stream *p_stream, } value = Basis(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]); - } else if (id == "Transform3D") { + } else if (id == "Transform3D" || id == "Transform") { // "Transform" kept for compatibility with Godot <4. Vector<real_t> args; Error err = _parse_construct<real_t>(p_stream, args, line, r_err_str); if (err) { |