summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-07-03 08:34:06 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-07-03 08:34:06 -0300
commitd280b14e6e7b686d4e1d873e6b1ac14754404075 (patch)
tree96f3f26a6ad279672c0ebec74e6ada4e4d3e45a4 /core
parent7fc2367508c41cfab86eaf7d84e04cd122978fdb (diff)
Hacked around duplication bug. I think duplicate needs to be even smarter, maybe pass two bools? (containers and/or resources)
Diffstat (limited to 'core')
-rw-r--r--core/variant_op.cpp2
1 files changed, 2 insertions, 0 deletions
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> resource = _get_obj().ref;
if (resource.is_valid()) {
return resource->duplicate(true);
}
}
+ */
return *this;
} break;
case DICTIONARY: