summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBojidar Marinov <bojidar.marinov.bg@gmail.com>2019-09-28 18:15:23 +0300
committerBojidar Marinov <bojidar.marinov.bg@gmail.com>2019-09-28 18:15:23 +0300
commit0b251997bb07b1beca29c4224d5ad503a8e3294f (patch)
tree74d1fa45552da3221804d06b1513e2bf78efea22
parent3481c47e7148fa31151c95d0adf198a370358351 (diff)
Ensure object metadata is unique
Closes #32415
-rw-r--r--core/object.cpp2
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;