Merge pull request #49304 from aaronfranke/tr3d-tr-compat-vp

Add "Transform" compatibility name for "Transform3D" in VariantParser
This commit is contained in:
Rémi Verschelde 2021-06-04 14:43:55 +02:00 committed by GitHub
commit 58ee66c52f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]);
} 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) {