diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-09-28 18:15:23 +0300 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-09-28 18:15:23 +0300 |
commit | 0b251997bb07b1beca29c4224d5ad503a8e3294f (patch) | |
tree | 74d1fa45552da3221804d06b1513e2bf78efea22 | |
parent | 3481c47e7148fa31151c95d0adf198a370358351 (diff) |
Ensure object metadata is unique
Closes #32415
-rw-r--r-- | core/object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object.cpp b/core/object.cpp index 6facf38733..ed3ae4f25d 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -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; |