summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-04 14:43:55 +0200
committerGitHub <noreply@github.com>2021-06-04 14:43:55 +0200
commit58ee66c52f686aa3c501c03f0368de3d1c4562b8 (patch)
tree46dcc1951b3572240c5cc0ae9ad3f1554e710e65
parent5dc923d3863b504d64b19501eaec04749cd975ce (diff)
parent028d9fa2bd8300e1679e8739451e69273b120d9c (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.cpp2
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) {