summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-28 14:49:35 +0100
committerGitHub <noreply@github.com>2019-10-28 14:49:35 +0100
commit7d710a745e3eecbde482349fff78f0a4e14f6371 (patch)
tree247ea53969cd2e657ef7d6cb7640f3e379f52261
parentaaa9751de3ef6b39217113aa26f018b25d5878e8 (diff)
parent0b251997bb07b1beca29c4224d5ad503a8e3294f (diff)
Merge pull request #32416 from bojidar-bg/32415-shared-metadata
Ensure object metadata is unique
-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;