Merge pull request #32416 from bojidar-bg/32415-shared-metadata

Ensure object metadata is unique
This commit is contained in:
Rémi Verschelde 2019-10-28 14:49:35 +01:00 committed by GitHub
commit 7d710a745e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;