Merge pull request #61362 from univeous/fix-get-meta

This commit is contained in:
Rémi Verschelde 2022-05-24 15:33:08 +02:00 committed by GitHub
commit 12fbc08bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1062,7 +1062,6 @@ void Object::set_meta(const String &p_name, const Variant &p_value) {
}
Variant Object::get_meta(const String &p_name, const Variant &p_default) const {
ERR_FAIL_COND_V(!metadata.has(p_name), Variant());
if (!metadata.has(p_name)) {
if (p_default != Variant()) {
return p_default;