Add "Transform" compatibility name for "Transform3D" in VariantParser
This commit is contained in:
parent
023056bc5c
commit
028d9fa2bd
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue