From d280b14e6e7b686d4e1d873e6b1ac14754404075 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 3 Jul 2018 08:34:06 -0300 Subject: Hacked around duplication bug. I think duplicate needs to be even smarter, maybe pass two bools? (containers and/or resources) --- core/variant_op.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/variant_op.cpp') diff --git a/core/variant_op.cpp b/core/variant_op.cpp index 983c3e18bc..bfa69b1fde 100644 --- a/core/variant_op.cpp +++ b/core/variant_op.cpp @@ -3418,12 +3418,14 @@ Variant Variant::iter_get(const Variant &r_iter, bool &r_valid) const { Variant Variant::duplicate(bool deep) const { switch (type) { case OBJECT: { + /* breaks stuff :( if (deep && !_get_obj().ref.is_null()) { Ref resource = _get_obj().ref; if (resource.is_valid()) { return resource->duplicate(true); } } + */ return *this; } break; case DICTIONARY: -- cgit v1.2.3