Ensure object metadata is unique

Closes #32415
This commit is contained in:
Bojidar Marinov 2019-09-28 18:15:23 +03:00
parent 3481c47e71
commit 0b251997bb
No known key found for this signature in database
GPG key ID: 4D546A8F1E091856

View file

@ -436,7 +436,7 @@ void Object::set(const StringName &p_name, const Variant &p_value, bool *r_valid
} else if (p_name == CoreStringNames::get_singleton()->_meta) {
//set_meta(p_name,p_value);
metadata = p_value;
metadata = p_value.duplicate();
if (r_valid)
*r_valid = true;
return;