From 0b251997bb07b1beca29c4224d5ad503a8e3294f Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Sat, 28 Sep 2019 18:15:23 +0300 Subject: [PATCH] Ensure object metadata is unique Closes #32415 --- core/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/object.cpp b/core/object.cpp index 6facf387339..ed3ae4f25d1 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;