Add "Transform" compatibility name for "Transform3D" in VariantParser

This commit is contained in:
Aaron Franke 2021-06-04 08:06:46 -04:00
parent 023056bc5c
commit 028d9fa2bd
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
1 changed files with 1 additions and 1 deletions

View File

@ -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]); 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; Vector<real_t> args;
Error err = _parse_construct<real_t>(p_stream, args, line, r_err_str); Error err = _parse_construct<real_t>(p_stream, args, line, r_err_str);
if (err) { if (err) {